|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalCacheEntry
Interface for internal cache entries that expose whether an entry has expired.
| Method Summary | |
|---|---|
boolean |
canExpire()
|
long |
getCreated()
|
long |
getExpiryTime()
Only used with entries that have a lifespan, this determines when an entry is due to expire. |
long |
getLastUsed()
|
boolean |
isExpired()
|
InternalCacheEntry |
setLifespan(long lifespan)
Sets the lifespan of the entry. |
InternalCacheEntry |
setMaxIdle(long maxIdle)
Sets the maximum idle time of the entry. |
void |
touch()
Updates access timestamps on this instance |
| Methods inherited from interface org.infinispan.container.entries.CacheEntry |
|---|
commit, getKey, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isNull, isRemoved, isValid, rollback, setCreated, setRemoved, setValid, setValue |
| Method Detail |
|---|
boolean isExpired()
boolean canExpire()
InternalCacheEntry setMaxIdle(long maxIdle)
setMaxIdle in interface CacheEntrymaxIdle - maxIdle to set
InternalCacheEntry setLifespan(long lifespan)
setLifespan in interface CacheEntrylifespan - lifespan to set
long getCreated()
long getLastUsed()
long getExpiryTime()
void touch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||