|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Expirable
Expiring Data model interface.
This interface provides a time variable to be compared against other time values to decide on "future" or "past".
Method Summary | |
---|---|
long |
getExpirationTime()
Gets the expiration time in milliseconds. |
boolean |
isExpiredAt(long now)
Checks whether the expiration time is passed with respect to the provided time. |
void |
setExpirationTime(long expirationTime)
Sets the expiration time in milliseconds. |
Method Detail |
---|
long getExpirationTime()
System.currentTimeMillis()
void setExpirationTime(long expirationTime)
expirationTime
- System.currentTimeMillis()
boolean isExpiredAt(long now)
Returns true if and only if now > getExpirationTime()
now
- time in milliseconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |