Package com.sun.jini.landlord
Interface LeasedResource
public interface LeasedResource
Server side representation of a lease
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the universally unique identifier associated with this lease.longReturns the expiration time of the lease.voidsetExpiration(long newExpiration) Changes the expiration time of the lease.
-
Method Details
-
setExpiration
void setExpiration(long newExpiration) Changes the expiration time of the lease.- Parameters:
newExpiration- The new expiration time in milliseconds since the beginning of the epoch
-
getExpiration
long getExpiration()Returns the expiration time of the lease.- Returns:
- The expiration time in milliseconds since the beginning of the epoch
-
getCookie
Uuid getCookie()Returns the universally unique identifier associated with this lease. Any proxies for this lease that implementReferentUuidshould return this object from theirgetReferentUuidmethod and should base their implementation ofequalson this object.
-