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, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
public void setSkipLookup(boolean skipLookup)
CacheEntry
setSkipLookup
in interface CacheEntry
setSkipLookup
in class ReadCommittedEntry
public boolean skipLookup()
skipLookup
in interface CacheEntry
skipLookup
in class ReadCommittedEntry
true
if the value must not be fetch from an external sourcepublic RepeatableReadEntry clone()
clone
in interface CacheEntry
clone
in interface MVCCEntry
clone
in class ReadCommittedEntry
public final Object setValue(Object value)
CacheEntry
setValue
in interface Map.Entry
setValue
in interface CacheEntry
setValue
in class ReadCommittedEntry
value
- value to setpublic void resetCurrentValue()
MVCCEntry
resetCurrentValue
in interface MVCCEntry
resetCurrentValue
in class ReadCommittedEntry
public void updatePreviousValue()
MVCCEntry
updatePreviousValue
in interface MVCCEntry
updatePreviousValue
in class ReadCommittedEntry
public Object getOldValue()
public Metadata getOldMetadata()
public void setRead()
MVCCEntry
public boolean isRead()
MVCCEntry
Copyright © 2021 JBoss by Red Hat. All rights reserved.