public abstract class AbstractInternalCacheEntry extends Object implements InternalCacheEntry
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInternalCacheEntry() |
protected |
AbstractInternalCacheEntry(Object key) |
| Modifier and Type | Method and Description |
|---|---|
AbstractInternalCacheEntry |
clone() |
void |
commit(DataContainer container,
Metadata metadata)
Commits changes
|
Object |
getKey()
Retrieves the key to this entry
|
Metadata |
getMetadata()
Get metadata of this cache entry.
|
boolean |
isChanged() |
boolean |
isCreated() |
boolean |
isEvicted() |
boolean |
isL1Entry() |
boolean |
isLoaded() |
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 |
setChanged(boolean changed) |
void |
setCreated(boolean created) |
void |
setEvicted(boolean evicted) |
void |
setLoaded(boolean loaded) |
void |
setMetadata(Metadata metadata)
Set the metadata in the cache entry.
|
void |
setRemoved(boolean removed) |
void |
setSkipLookup(boolean skipLookup)
|
void |
setValid(boolean valid) |
boolean |
skipLookup() |
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanExpire, getCreated, getExpiryTime, getLastUsed, isExpired, isExpired, reincarnate, reincarnate, toInternalCacheValue, touch, touchgetLifespan, getMaxIdle, getValue, setValuecomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodeprotected Object key
protected AbstractInternalCacheEntry()
protected AbstractInternalCacheEntry(Object key)
public final void commit(DataContainer container, Metadata metadata)
CacheEntrycommit in interface CacheEntrycontainer - data container to commit topublic final void rollback()
CacheEntryrollback in interface CacheEntrypublic void setChanged(boolean changed)
setChanged 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 void setLoaded(boolean loaded)
setLoaded in interface CacheEntrypublic void setSkipLookup(boolean skipLookup)
CacheEntrysetSkipLookup in interface CacheEntrypublic final boolean isNull()
CacheEntryisNull 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 isLoaded()
isLoaded in interface CacheEntrypublic boolean skipLookup()
skipLookup in interface CacheEntrytrue if the value must not be fetch from an external sourcepublic boolean undelete(boolean doUndelete)
CacheEntryundelete in interface CacheEntrypublic Metadata getMetadata()
MetadataAwaregetMetadata in interface MetadataAwarepublic void setMetadata(Metadata metadata)
MetadataAwaresetMetadata in interface MetadataAwaremetadata - to apply to the cache entrypublic final Object getKey()
CacheEntrygetKey in interface Map.EntrygetKey in interface CacheEntrypublic boolean isL1Entry()
isL1Entry in interface InternalCacheEntrytrue if the entry is a L1 entry.public AbstractInternalCacheEntry clone()
clone in interface CacheEntryclone in interface InternalCacheEntryclone in class ObjectCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.