OnJava8-Examples/remote/PerfectTimeImpl.java

11 lines
279 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// remote/PerfectTimeImpl.java
2015-06-15 17:47:35 -07:00
// The implementation of the PerfectTime
// remote object.
import java.rmi.RemoteException;
public class PerfectTimeImpl implements PerfectTime {
public long getPerfectTime() throws RemoteException {
return System.currentTimeMillis();
}
2015-09-07 11:44:36 -06:00
}