Package org.apache.commons.jcs3.admin
Class CacheElementInfo
java.lang.Object
org.apache.commons.jcs3.admin.CacheElementInfo
Stores info on a cache element for the template
-
Constructor Summary
ConstructorDescriptionCacheElementInfo
(String key, boolean eternal, String createTime, long maxLifeSeconds, long expiresInSeconds) Parameterized constructor -
Method Summary
-
Constructor Details
-
CacheElementInfo
@ConstructorProperties({"key","eternal","createTime","maxLifeSeconds","expiresInSeconds"}) public CacheElementInfo(String key, boolean eternal, String createTime, long maxLifeSeconds, long expiresInSeconds) Parameterized constructor- Parameters:
key
- element keyeternal
- is it eternalcreateTime
- when it was createdmaxLifeSeconds
- max lifeexpiresInSeconds
- when it will expire
-
-
Method Details
-
getKey
- Returns:
- a string representation of the key
-
isEternal
- Returns:
- true if the item does not expire
-
getCreateTime
- Returns:
- the time the object was created
-
getMaxLifeSeconds
Ignored if isEternal- Returns:
- the longest this object can live.
-
getExpiresInSeconds
Ignored if isEternal- Returns:
- how many seconds until this object expires.
-
toString
-