public interface MVCCEntry<K,V> extends CacheEntry<K,V>
Modifier and Type | Method and Description |
---|---|
MVCCEntry<K,V> |
clone() |
default boolean |
isCommitted() |
boolean |
isExpired()
Returns whether this entry was marked as being expired or not
|
default boolean |
isLoaded() |
default 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.
|
boolean |
isSkipSharedStore() |
void |
resetCurrentValue()
Reset the current value of the entry to the value before the commmand was executed the first time.
|
void |
setChanged(boolean isChanged) |
default void |
setCommitted()
Mark this context-entry as already committed to the
DataContainer . |
void |
setExpired(boolean expired)
Marks this entry as being expired.
|
default void |
setLoaded(boolean loaded) |
default 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 |
setSkipSharedStore() |
void |
updatePreviousValue()
Update the previous value of the entry - set it to current value.
|
commit, getCreated, getInternalMetadata, getKey, getLastUsed, getLifespan, getMaxIdle, getValue, isChanged, isCreated, isEvicted, isNull, isRemoved, setCreated, setCreated, setEvicted, setInternalMetadata, setLastUsed, setRemoved, setSkipLookup, setValue, skipLookup
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
getMetadata, setMetadata
void setChanged(boolean isChanged)
setChanged
in interface CacheEntry<K,V>
void setExpired(boolean expired)
expired
- whether or not this entry should be expiredboolean isExpired()
void resetCurrentValue()
void updatePreviousValue()
default void setRead()
default boolean isRead()
default void setCommitted()
DataContainer
.default boolean isCommitted()
DataContainer
default boolean isLoaded()
default void setLoaded(boolean loaded)
boolean isSkipSharedStore()
void setSkipSharedStore()
Copyright © 2021 JBoss by Red Hat. All rights reserved.