|
||||||||||
| 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
| Field Summary | |
|---|---|
protected Object |
key
|
| Constructor Summary | |
|---|---|
protected |
AbstractInternalCacheEntry()
|
protected |
AbstractInternalCacheEntry(Object key)
|
| Method Summary | |
|---|---|
AbstractInternalCacheEntry |
clone()
|
void |
commit(DataContainer container,
EntryVersion newVersion)
Commits changes |
Object |
getKey()
Retrieves the key to this entry |
EntryVersion |
getVersion()
|
boolean |
isChanged()
|
boolean |
isCreated()
|
boolean |
isEvicted()
|
boolean |
isLockPlaceholder()
|
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 |
setEvicted(boolean evicted)
|
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)
|
void |
setVersion(EntryVersion version)
Sets the version on this entry. |
String |
toString()
|
boolean |
undelete(boolean doUndelete)
If the entry is marked as removed and doUndelete==true then the "valid" flag is set to true and "removed" flag is set to false. |
| 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, isExpired, reincarnate, toInternalCacheValue, touch, touch |
| Methods inherited from interface org.infinispan.container.entries.CacheEntry |
|---|
getLifespan, getMaxIdle, getValue, setValue |
| Methods inherited from interface java.util.Map.Entry |
|---|
equals, hashCode |
| Field Detail |
|---|
protected Object key
| Constructor Detail |
|---|
protected AbstractInternalCacheEntry()
protected AbstractInternalCacheEntry(Object key)
| Method Detail |
|---|
public final void commit(DataContainer container,
EntryVersion newVersion)
CacheEntry
commit in interface CacheEntrycontainer - data container to commit topublic final void rollback()
CacheEntry
rollback in interface CacheEntrypublic final void setCreated(boolean created)
setCreated in interface CacheEntrypublic final void setRemoved(boolean removed)
setRemoved in interface CacheEntrypublic final void setEvicted(boolean evicted)
setEvicted in interface CacheEntrypublic final void setValid(boolean valid)
setValid in interface CacheEntrypublic final boolean isNull()
CacheEntry
isNull in interface CacheEntrypublic final boolean isChanged()
isChanged in interface CacheEntrypublic final boolean isCreated()
isCreated in interface CacheEntrypublic final boolean isRemoved()
isRemoved in interface CacheEntrypublic final boolean isEvicted()
isEvicted in interface CacheEntrypublic final boolean isValid()
isValid in interface CacheEntrypublic boolean undelete(boolean doUndelete)
CacheEntry
undelete in interface CacheEntrypublic final boolean isLockPlaceholder()
isLockPlaceholder in interface CacheEntrypublic void setMaxIdle(long maxIdle)
InternalCacheEntry
setMaxIdle in interface CacheEntrysetMaxIdle in interface InternalCacheEntrymaxIdle - maxIdle to setpublic void setLifespan(long lifespan)
InternalCacheEntry
setLifespan in interface CacheEntrysetLifespan in interface InternalCacheEntrylifespan - lifespan to setpublic EntryVersion getVersion()
getVersion in interface Versionedpublic void setVersion(EntryVersion version)
Versioned
setVersion in interface Versionedversion - version to setpublic final Object getKey()
CacheEntry
getKey in interface Map.Entry<Object,Object>getKey in interface CacheEntrypublic String toString()
toString in class Objectpublic AbstractInternalCacheEntry clone()
clone in interface InternalCacheEntryclone in class Object
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||