|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jportlet.service.cache.CacheableImpl
Implementation of CacheableImpl
Constructor Summary | |
CacheableImpl(java.lang.Object id,
java.lang.Object data,
long TTL)
|
Method Summary | |
void |
expire()
Force the object to expire |
java.lang.Object |
getData()
Returns the data |
java.lang.Object |
getId()
Returns if object unique identifier |
boolean |
isExpired()
Returns true if the object has expired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheableImpl(java.lang.Object id, java.lang.Object data, long TTL)
id
- Id of the Cacheable objectdata
- Data of the Cacheable objectTTL
- Time to live in millis-seconds. if < 0, then the object
never expiresMethod Detail |
public java.lang.Object getData()
Cacheable
getData
in interface Cacheable
Cacheable.getData()
public java.lang.Object getId()
Cacheable
getId
in interface Cacheable
Cacheable.getId()
public boolean isExpired()
Cacheable
true
if the object has expired
isExpired
in interface Cacheable
Cacheable.isExpired()
public void expire()
Cacheable
expire
in interface Cacheable
Cacheable.expire()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |