public interface CacheEntry extends Map.Entry<Object,Object>, Versioned
Modifier and Type | Method and Description |
---|---|
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.
|
getVersion, setVersion
boolean isNull()
boolean isChanged()
boolean isCreated()
boolean isRemoved()
boolean isEvicted()
boolean isValid()
Object getKey()
Object getValue()
long getLifespan()
long getMaxIdle()
void setMaxIdle(long maxIdle)
maxIdle
- maxIdle to setvoid setLifespan(long lifespan)
lifespan
- lifespan to setvoid 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)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.