GigaSpaces XAP 10.0.1 API

com.sun.jini.landlord
Interface LeasedResource


public interface LeasedResource

Server side representation of a lease

Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
LeasePeriodPolicy

Method Summary
 Uuid getCookie()
          Returns the universally unique identifier associated with this lease.
 long getExpiration()
          Returns the expiration time of the lease.
 void setExpiration(long newExpiration)
          Changes the expiration time of the lease.
 

Method Detail

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 implement ReferentUuid should return this object from their getReferentUuid method and should base their implementation of equals on this object.


GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.