LR.2. The Interface

The LeaseRenewalService (in the net.jini.lease package) defines the interface to the renewal service. The interface is not a remote interface; each implementation of the renewal service exports proxy objects that implement the LeaseRenewalService interface local to the client, using an implementation-specific protocol to communicate with the actual remote server. All of the proxy methods obey normal RMI remote interface semantics. Two proxy objects are equal (using the equals method) if they are proxies for the same renewal service. All the methods of LeaseRenewalService throw RemoteException and require only the default serialization semantics. Therefore, LeaseRenewalService can be implemented directly using RMI.

 package ...

Get Jini™ Specifications, The, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.