|
||||||||||
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)
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 |
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)
|
CacheEntry |
setLifespan(long lifespan)
Sets the lifespan of the entry. |
CacheEntry |
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, returing the previous value |
Method Detail |
---|
boolean isNull()
boolean isChanged()
boolean isCreated()
boolean isRemoved()
boolean isValid()
Object getKey()
Object getValue()
long getLifespan()
long getMaxIdle()
CacheEntry setMaxIdle(long maxIdle)
maxIdle
- maxIdle to set
CacheEntry setLifespan(long lifespan)
lifespan
- lifespan to set
Object setValue(Object value)
value
- value to set
void commit(DataContainer container)
container
- data container to commit tovoid rollback()
void setCreated(boolean created)
void setRemoved(boolean removed)
void setValid(boolean valid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |