public abstract class AbstractInternalCacheEntry extends Object implements InternalCacheEntry
| Modifier and Type | Field and Description |
|---|---|
protected PrivateMetadata |
internalMetadata |
protected Object |
key |
protected Object |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInternalCacheEntry(Object key,
Object value,
PrivateMetadata internalMetadata) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldsToString(StringBuilder builder) |
AbstractInternalCacheEntry |
clone() |
void |
commit(DataContainer container)
Commits changes
|
boolean |
equals(Object o) |
PrivateMetadata |
getInternalMetadata() |
Object |
getKey()
Retrieves the key to this entry
|
Metadata |
getMetadata()
Get metadata of this cache entry.
|
Object |
getValue()
Retrieves the value of this entry
|
int |
hashCode() |
boolean |
isChanged() |
boolean |
isCreated() |
boolean |
isEvicted() |
boolean |
isL1Entry() |
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 |
setInternalMetadata(PrivateMetadata metadata) |
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() |
finalize, getClass, notify, notifyAll, wait, wait, waitcanExpire, canExpireMaxIdle, getExpiryTime, isExpired, reincarnate, toInternalCacheValue, touchgetCreated, getLastUsed, getLifespan, getMaxIdle, setCreated, setLastUsedcomparingByKey, comparingByKey, comparingByValue, comparingByValueprotected Object key
protected Object value
protected PrivateMetadata internalMetadata
protected AbstractInternalCacheEntry(Object key, Object value, PrivateMetadata internalMetadata)
public final void commit(DataContainer container)
CacheEntrycommit in interface CacheEntrycontainer - data container to commit topublic 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 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 boolean skipLookup()
skipLookup in interface CacheEntrytrue if the value must not be fetch from an external sourcepublic 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 final Object getValue()
CacheEntrygetValue in interface Map.EntrygetValue in interface CacheEntrypublic final Object setValue(Object value)
CacheEntrysetValue in interface Map.EntrysetValue in interface CacheEntryvalue - value to setpublic boolean isL1Entry()
isL1Entry in interface InternalCacheEntrytrue if the entry is a L1 entry.public final PrivateMetadata getInternalMetadata()
getInternalMetadata in interface CacheEntrypublic final void setInternalMetadata(PrivateMetadata metadata)
setInternalMetadata in interface CacheEntrypublic AbstractInternalCacheEntry clone()
clone in interface CacheEntryclone in interface InternalCacheEntryclone in class Objectpublic final boolean equals(Object o)
public final int hashCode()
protected void appendFieldsToString(StringBuilder builder)
Copyright © 2022 JBoss by Red Hat. All rights reserved.