|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.container.entries.AbstractInternalCacheEntry
org.infinispan.container.entries.ImmortalCacheEntry
public class ImmortalCacheEntry
A cache entry that is immortal/cannot expire
Method Summary | |
---|---|
boolean |
canExpire()
|
boolean |
equals(Object o)
|
long |
getCreated()
|
long |
getExpiryTime()
Only used with entries that have a lifespan, this determines when an entry is due to expire. |
long |
getLastUsed()
|
long |
getLifespan()
|
long |
getMaxIdle()
|
int |
hashCode()
|
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 class org.infinispan.container.entries.AbstractInternalCacheEntry |
---|
commit, getKey, getValue, isChanged, isCreated, isNull, isRemoved, isValid, rollback, setCreated, setRemoved, setValid, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final boolean isExpired()
public final boolean canExpire()
public InternalCacheEntry setMaxIdle(long maxIdle)
CacheEntry
maxIdle
- maxIdle to set
public InternalCacheEntry setLifespan(long lifespan)
CacheEntry
lifespan
- lifespan to set
public final long getCreated()
public final long getLastUsed()
public final long getLifespan()
public final long getMaxIdle()
public final long getExpiryTime()
InternalCacheEntry
public final void touch()
InternalCacheEntry
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |