|
||||||||||
| 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 expires| Method Detail |
public java.lang.Object getData()
Cacheable
getData in interface CacheableCacheable.getData()public java.lang.Object getId()
Cacheable
getId in interface CacheableCacheable.getId()public boolean isExpired()
Cacheabletrue if the object has expired
isExpired in interface CacheableCacheable.isExpired()public void expire()
Cacheable
expire in interface CacheableCacheable.expire()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||