|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Leased resources must meet this interface if they are to be used
with LeaseDurationPolicy
and/or
LeaseManager
LeaseDurationPolicy
,
LeaseManager
Method Summary | |
java.lang.Object |
getCookie()
Returns a unique identifier that can be used by the grantor of the resource to identify it in the context of a Landlord.renew() or Landlord.cancel()
call. |
long |
getExpiration()
Returns the expiration time of the leased resource. |
void |
setExpiration(long newExpiration)
Changes the expiration time of the leased resource. |
Method Detail |
public void setExpiration(long newExpiration)
newExpiration
- The new expiration time in milliseconds
since the beginning of the epochpublic long getExpiration()
public java.lang.Object getCookie()
Landlord.renew()
or Landlord.cancel()
call. In general this object will be passed between VMs using RMI
so care should be taken in not making this object bigger than it
needs to be.Landlord.renew(java.lang.Object, long)
,
Landlord.cancel(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |