public class ClearCacheEntry<K,V> extends Object implements CacheEntry<K,V>
ClearInvocationContext to process the ClearCommand.| Modifier and Type | Method and Description |
|---|---|
CacheEntry<K,V> |
clone() |
void |
commit(DataContainer<K,V> container,
Metadata metadata)
Commits changes
|
static <K,V> ClearCacheEntry<K,V> |
getInstance() |
K |
getKey()
Retrieves the key to this entry
|
long |
getLifespan() |
long |
getMaxIdle() |
Metadata |
getMetadata()
Get metadata of this cache entry.
|
V |
getValue()
Retrieves the value of this entry
|
boolean |
isChanged() |
boolean |
isCreated() |
boolean |
isEvicted() |
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) |
V |
setValue(V value)
Sets the value of the entry, returning the previous value
|
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, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic static <K,V> ClearCacheEntry<K,V> getInstance()
public boolean isNull()
CacheEntryisNull in interface CacheEntry<K,V>public boolean isChanged()
isChanged in interface CacheEntry<K,V>public void setChanged(boolean changed)
setChanged in interface CacheEntry<K,V>public boolean isCreated()
isCreated in interface CacheEntry<K,V>public void setCreated(boolean created)
setCreated in interface CacheEntry<K,V>public boolean isRemoved()
isRemoved in interface CacheEntry<K,V>public void setRemoved(boolean removed)
setRemoved in interface CacheEntry<K,V>public boolean isEvicted()
isEvicted in interface CacheEntry<K,V>public void setEvicted(boolean evicted)
setEvicted in interface CacheEntry<K,V>public boolean isValid()
isValid in interface CacheEntry<K,V>public void setValid(boolean valid)
setValid in interface CacheEntry<K,V>public boolean isLoaded()
isLoaded in interface CacheEntry<K,V>public void setLoaded(boolean loaded)
setLoaded in interface CacheEntry<K,V>public K getKey()
CacheEntrypublic V getValue()
CacheEntrypublic long getLifespan()
getLifespan in interface CacheEntry<K,V>public long getMaxIdle()
getMaxIdle in interface CacheEntry<K,V>public boolean skipLookup()
skipLookup in interface CacheEntry<K,V>true if the value must not be fetch from an external sourcepublic V setValue(V value)
CacheEntrypublic void commit(DataContainer<K,V> container, Metadata metadata)
CacheEntrycommit in interface CacheEntry<K,V>container - data container to commit topublic void rollback()
CacheEntryrollback in interface CacheEntry<K,V>public void setSkipLookup(boolean skipLookup)
CacheEntrysetSkipLookup in interface CacheEntry<K,V>public boolean undelete(boolean doUndelete)
CacheEntryundelete in interface CacheEntry<K,V>public CacheEntry<K,V> clone()
public Metadata getMetadata()
MetadataAwaregetMetadata in interface MetadataAwarepublic void setMetadata(Metadata metadata)
MetadataAwaresetMetadata in interface MetadataAwaremetadata - to apply to the cache entryCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.