public interface ICacheEntry
Modifier and Type | Method and Description |
---|---|
int |
getCacheId() |
long |
getExpiration() |
boolean |
getIsValid()
gets whether thing is valid
|
ICacheKey |
getKey() |
long |
getModified() |
Object |
getValue() |
boolean |
isExpired(long currentTime)
is the object expired given current time
|
void |
setCacheId(int cacheID)
sets cache id
|
void |
setExpiration(long expiration)
sets expiration
|
void |
setIsValid(boolean isValid) |
void |
setModified(long modifiedDate)
sets modified date
|
void |
setValue(Object value)
sets value
|
ICacheKey getKey()
Object getValue()
void setValue(Object value)
long getModified()
void setModified(long modifiedDate)
long getExpiration()
void setExpiration(long expiration)
expiration
- 0 means not expirableboolean getIsValid()
void setIsValid(boolean isValid)
isValid
- true means validboolean isExpired(long currentTime)
int getCacheId()
void setCacheId(int cacheID)