public class RepeatableReadEntry extends ReadCommittedEntry
ReadCommittedEntry that provides Repeatable Read semanticsReadCommittedEntry.Flags| Modifier and Type | Field and Description |
|---|---|
protected Metadata |
oldMetadata |
protected Object |
oldValue |
created, flags, internalMetadata, key, lastUsed, metadata, value| Constructor and Description |
|---|
RepeatableReadEntry(Object key,
Object value,
Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
RepeatableReadEntry |
clone() |
Metadata |
getOldMetadata() |
Object |
getOldValue() |
boolean |
isRead()
Check is this entry as loaded from the cache (as opposed to generated by the application
using write-only command), mostly for purposes of the write skew check.
|
void |
resetCurrentValue()
Reset the current value of the entry to the value before the commmand was executed the first time.
|
void |
setRead()
Mark that this entry was loaded from the cache (as opposed to generated by the application
using write-only command), mostly for purposes of the write skew check.
|
void |
setSkipLookup(boolean skipLookup)
|
Object |
setValue(Object value)
Sets the value of the entry, returning the previous value
|
boolean |
skipLookup() |
void |
updatePreviousValue()
Update the previous value of the entry - set it to current value.
|
commit, commit, getCreated, getInternalMetadata, getKey, getLastUsed, getLifespan, getMaxIdle, getMetadata, getValue, isChanged, isCommitted, isCreated, isEvicted, isExpired, isLoaded, isNull, isRemoved, isSkipSharedStore, setChanged, setCommitted, setCreated, setCreated, setEvicted, setExpired, setFlag, setInternalMetadata, setLastUsed, setLoaded, setMetadata, setRemoved, setSkipSharedStore, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic void setSkipLookup(boolean skipLookup)
CacheEntrysetSkipLookup in interface CacheEntrysetSkipLookup in class ReadCommittedEntrypublic boolean skipLookup()
skipLookup in interface CacheEntryskipLookup in class ReadCommittedEntrytrue if the value must not be fetch from an external sourcepublic RepeatableReadEntry clone()
clone in interface CacheEntryclone in interface MVCCEntryclone in class ReadCommittedEntrypublic final Object setValue(Object value)
CacheEntrysetValue in interface Map.EntrysetValue in interface CacheEntrysetValue in class ReadCommittedEntryvalue - value to setpublic void resetCurrentValue()
MVCCEntryresetCurrentValue in interface MVCCEntryresetCurrentValue in class ReadCommittedEntrypublic void updatePreviousValue()
MVCCEntryupdatePreviousValue in interface MVCCEntryupdatePreviousValue in class ReadCommittedEntrypublic Object getOldValue()
public Metadata getOldMetadata()
public void setRead()
MVCCEntrypublic boolean isRead()
MVCCEntryCopyright © 2022 JBoss by Red Hat. All rights reserved.