|
||||||||||
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.TransientCacheEntry
public class TransientCacheEntry
A cache entry that is transient, i.e., it can be considered expired afer a period of not being used
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 void touch()
InternalCacheEntry
public final boolean canExpire()
public boolean isExpired()
public InternalCacheEntry setMaxIdle(long maxIdle)
CacheEntry
maxIdle
- maxIdle to set
public InternalCacheEntry setLifespan(long lifespan)
CacheEntry
lifespan
- lifespan to set
public long getCreated()
public final long getLastUsed()
public long getLifespan()
public long getExpiryTime()
InternalCacheEntry
public final long getMaxIdle()
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 |