|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an object that can be cached. To avoid having to modify an existing object, use a wrapper class that implements this interface.
Method Summary | |
long |
getExpiryTime()
Gets the time (in milliseconds) when this object will expire |
java.lang.Object |
getIdentifier()
Gets the identifier for the object |
long |
getLastAccessedTime()
Gets the last accessed time in milliseconds |
long |
getLastModifiedTime()
Gets the time the object was last modified |
boolean |
isExpired()
Returns whether the cached object has expired |
void |
setLastAccessedTime(long time)
Sets the last time this object was accessed |
void |
setLastModifiedTime(long time)
Sets the last modified time |
Method Detail |
public java.lang.Object getIdentifier()
public void setLastModifiedTime(long time)
time
- The last modified time in millisecondspublic long getLastModifiedTime()
public long getLastAccessedTime()
public void setLastAccessedTime(long time)
time
- Time in millisecondspublic long getExpiryTime()
public boolean isExpired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |