public class NullCacheEntry<K,V> extends Object implements CacheEntry<K,V>
| Modifier and Type | Method and Description |
|---|---|
CacheEntry |
clone() |
void |
commit(DataContainer container)
Commits changes
|
static <K,V> NullCacheEntry<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 |
isNull()
Tests whether the entry represents a null value, typically used for repeatable read.
|
boolean |
isRemoved() |
void |
setChanged(boolean changed) |
void |
setCreated(boolean created) |
void |
setEvicted(boolean evicted) |
void |
setMetadata(Metadata metadata)
Set the metadata in the cache entry.
|
void |
setRemoved(boolean removed) |
void |
setSkipLookup(boolean skipLookup)
|
Object |
setValue(Object value)
Sets the value of the entry, returning the previous value
|
boolean |
skipLookup() |
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreated, getInternalMetadata, getLastUsed, setCreated, setInternalMetadata, setLastUsedcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic static <K,V> NullCacheEntry<K,V> getInstance()
public boolean isNull()
CacheEntryisNull in interface CacheEntry<K,V>public boolean isChanged()
isChanged in interface CacheEntry<K,V>public boolean isCreated()
isCreated in interface CacheEntry<K,V>public boolean isRemoved()
isRemoved in interface CacheEntry<K,V>public boolean isEvicted()
isEvicted 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 Object setValue(Object value)
CacheEntrypublic void commit(DataContainer container)
CacheEntrycommit in interface CacheEntry<K,V>container - data container to commit topublic void setChanged(boolean changed)
setChanged in interface CacheEntry<K,V>public void setCreated(boolean created)
setCreated in interface CacheEntry<K,V>public void setRemoved(boolean removed)
setRemoved in interface CacheEntry<K,V>public void setEvicted(boolean evicted)
setEvicted in interface CacheEntry<K,V>public void setSkipLookup(boolean skipLookup)
CacheEntrysetSkipLookup in interface CacheEntry<K,V>public CacheEntry clone()
public Metadata getMetadata()
MetadataAwaregetMetadata in interface MetadataAwarepublic void setMetadata(Metadata metadata)
MetadataAwaresetMetadata in interface MetadataAwaremetadata - to apply to the cache entryCopyright © 2022 JBoss by Red Hat. All rights reserved.