|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A lease is used to track message exipration. It contains the object to be leased, the duration and the object to callback if or when the lease expirex
Since leases may be persistent we need to store the absolute expiry time so that when the service is restarted it can correctly expire messages
Method Summary | |
long |
getDuration()
Return the orginal duration of the lease. |
long |
getExpiryTime()
Return the absolute expiry time of this lease |
java.lang.Object |
getLeasedObject()
Return the leased object |
java.lang.Class |
getLeasedObjectType()
Return the class of leased object |
long |
getRemainingTime()
Return the time remaining on the lease in milliseconds |
Method Detail |
public long getExpiryTime()
public long getDuration()
public long getRemainingTime()
public java.lang.Object getLeasedObject()
public java.lang.Class getLeasedObjectType()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |