|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Lease
interface represents a token granted by lease manager
that allows access to some resource for a limited period of time.
Method Summary | |
---|---|
long |
getDuration()
Get lease duration. |
long |
getExpiration()
Get lease expiration time. |
LeaseFactory |
getFactory()
Get instance of LeaseFactory that created this lease. |
java.lang.Object |
getLeaseTarget()
Get target of this lease. |
java.lang.Object |
getTenant()
Get tenant that was granted this lease. |
boolean |
isExpired()
Check if lease has expired. |
Method Detail |
public long getExpiration()
public long getDuration()
public boolean isExpired()
true
if lease has expired.public java.lang.Object getLeaseTarget()
public java.lang.Object getTenant()
public LeaseFactory getFactory()
LeaseFactory
that created this lease.
LeaseFactory
.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |