|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheEntry
An entry that is stored in the data container
Method Summary | |
---|---|
void |
commit(DataContainer container,
EntryVersion newVersion)
Commits changes |
Object |
getKey()
Retrieves the key to this entry |
long |
getLifespan()
|
long |
getMaxIdle()
|
Object |
getValue()
Retrieves the value of this entry |
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)
|
Object |
setValue(Object value)
Sets the value of the entry, returning the previous value |
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 interface java.util.Map.Entry |
---|
equals, hashCode |
Methods inherited from interface org.infinispan.container.entries.versioned.Versioned |
---|
getVersion, setVersion |
Method Detail |
---|
boolean isNull()
boolean isChanged()
boolean isCreated()
boolean isRemoved()
boolean isEvicted()
boolean isValid()
Object getKey()
getKey
in interface Map.Entry<Object,Object>
Object getValue()
getValue
in interface Map.Entry<Object,Object>
long getLifespan()
long getMaxIdle()
void setMaxIdle(long maxIdle)
maxIdle
- maxIdle to setvoid setLifespan(long lifespan)
lifespan
- lifespan to setObject setValue(Object value)
setValue
in interface Map.Entry<Object,Object>
value
- value to set
void commit(DataContainer container, EntryVersion newVersion)
container
- data container to commit tovoid rollback()
void setCreated(boolean created)
void setRemoved(boolean removed)
void setEvicted(boolean evicted)
void setValid(boolean valid)
boolean isLockPlaceholder()
boolean undelete(boolean doUndelete)
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |