|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalCacheAttributes
The PortalCacheAttributes interface defines attributes which can be stored to cached elements.
Method Summary | |
---|---|
long |
getCreateDate()
get the creation date as timestamp in milliseconds from the entry. |
boolean |
getIsEternal()
true if this cache object should not be expired - maxLive will be ignored |
long |
getLastAccessDate()
get the last access date of the cache element as timestamp in milliseconds. |
int |
getMaxAge()
get the maximum age that the cache entry may exist in seconds. |
int |
getMaxIdleTime()
get the maximum idle time of the cache entry in seconds. |
int |
getSize()
get the approximate size of the entry in bytes. |
void |
setIsEternal(boolean isEternal)
Sets this cache object eternal - it will live not expire. |
void |
setLastAccessDateToNow()
update the current access time to the current timestamp. |
void |
setMaxAge(int maxAge)
set the maximum age of a cache entry - has to be > 0 |
void |
setMaxIdleTime(int maxIdleTime)
set the maximum idle time of the cache entry in seconds. |
void |
setSize(int size)
set the cache entry size in bytes. |
Method Detail |
---|
boolean getIsEternal()
void setIsEternal(boolean isEternal)
long getCreateDate()
long getLastAccessDate()
void setLastAccessDateToNow()
int getMaxAge()
getIsEternal()
void setMaxAge(int maxAge)
maxAge
- the max age of the entry in seconds.setIsEternal(boolean)
int getMaxIdleTime()
void setMaxIdleTime(int maxIdleTime)
maxIdleTime
- the max idle time of the entry in seconds.int getSize()
void setSize(int size)
size
- the approximate size of the entry in bytes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |