|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.container.entries.AbstractInternalCacheEntry
public abstract class AbstractInternalCacheEntry
An abstract internal cache entry that is typically stored in the data container
Method Summary | |
---|---|
AbstractInternalCacheEntry |
clone()
|
void |
commit(DataContainer container)
Commits changes |
Object |
getKey()
Retrieves the key to this entry |
boolean |
isChanged()
|
boolean |
isCreated()
|
boolean |
isNull()
Tests whether the entry represents a null value, typically used for repeatable read. |
boolean |
isRemoved()
|
boolean |
isValid()
|
void |
rollback()
Rolls back changes |
void |
setCreated(boolean created)
|
void |
setLifespan(long lifespan)
Sets the lifespan of the entry. |
void |
setMaxIdle(long maxIdle)
Sets the maximum idle time of the entry. |
void |
setRemoved(boolean removed)
|
void |
setValid(boolean valid)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.infinispan.container.entries.InternalCacheEntry |
---|
canExpire, getCreated, getExpiryTime, getLastUsed, isExpired, toInternalCacheValue, touch |
Methods inherited from interface org.infinispan.container.entries.CacheEntry |
---|
getLifespan, getMaxIdle, getValue, setValue |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Method Detail |
---|
public final void commit(DataContainer container)
CacheEntry
commit
in interface CacheEntry
container
- data container to commit topublic final void rollback()
CacheEntry
rollback
in interface CacheEntry
public final void setCreated(boolean created)
setCreated
in interface CacheEntry
public final void setRemoved(boolean removed)
setRemoved
in interface CacheEntry
public final void setValid(boolean valid)
setValid
in interface CacheEntry
public final boolean isNull()
CacheEntry
isNull
in interface CacheEntry
public final boolean isChanged()
isChanged
in interface CacheEntry
public final boolean isCreated()
isCreated
in interface CacheEntry
public final boolean isRemoved()
isRemoved
in interface CacheEntry
public final boolean isValid()
isValid
in interface CacheEntry
public void setMaxIdle(long maxIdle)
InternalCacheEntry
setMaxIdle
in interface CacheEntry
setMaxIdle
in interface InternalCacheEntry
maxIdle
- maxIdle to setpublic void setLifespan(long lifespan)
InternalCacheEntry
setLifespan
in interface CacheEntry
setLifespan
in interface InternalCacheEntry
lifespan
- lifespan to setpublic final Object getKey()
CacheEntry
getKey
in interface Map.Entry<Object,Object>
getKey
in interface CacheEntry
public String toString()
toString
in class Object
public AbstractInternalCacheEntry clone()
clone
in interface InternalCacheEntry
clone
in class Object
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |