|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LeaseIfc
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 |
---|
long getExpiryTime()
long getDuration()
long getRemainingTime()
java.lang.Object getLeasedObject()
java.lang.Class getLeasedObjectType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |