Package org.infinispan.container.entries
Class RepeatableReadEntry<K,V>
java.lang.Object
org.infinispan.container.entries.ReadCommittedEntry<K,V>
org.infinispan.container.entries.RepeatableReadEntry<K,V>
- All Implemented Interfaces:
Cloneable,Map.Entry<K,,V> CacheEntry<K,,V> MetadataAware,MVCCEntry<K,V>
- Direct Known Subclasses:
VersionedRepeatableReadEntry
An extension of
ReadCommittedEntry that provides Repeatable Read semantics- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.container.entries.ReadCommittedEntry
ReadCommittedEntry.Flags -
Field Summary
Fields inherited from class org.infinispan.container.entries.ReadCommittedEntry
created, flags, internalMetadata, key, lastUsed, metadata, oldMetadata, oldValue, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanisRead()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.voidsetRead()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.voidsetSkipLookup(boolean skipLookup) final VSets the value of the entry, returning the previous valuebooleanMethods inherited from class org.infinispan.container.entries.ReadCommittedEntry
commit, commit, getCreated, getInternalMetadata, getKey, getLastUsed, getLifespan, getMaxIdle, getMetadata, getOldMetadata, getOldValue, getValue, isChanged, isCommitted, isCreated, isEvicted, isExpired, isLoaded, isNull, isRemoved, isSkipSharedStore, resetCurrentValue, setChanged, setCommitted, setCreated, setCreated, setEvicted, setExpired, setFlag, setInternalMetadata, setLastUsed, setLoaded, setMetadata, setRemoved, setSkipSharedStore, toString, updatePreviousValue
-
Constructor Details
-
RepeatableReadEntry
-
-
Method Details
-
setSkipLookup
public void setSkipLookup(boolean skipLookup) Description copied from interface:CacheEntry- Specified by:
setSkipLookupin interfaceCacheEntry<K,V> - Overrides:
setSkipLookupin classReadCommittedEntry<K,V>
-
skipLookup
public boolean skipLookup()- Specified by:
skipLookupin interfaceCacheEntry<K,V> - Overrides:
skipLookupin classReadCommittedEntry<K,V> - Returns:
trueif the value must not be fetch from an external source
-
clone
-
setValue
Description copied from interface:CacheEntrySets the value of the entry, returning the previous value -
setRead
public void setRead()Description copied from interface:MVCCEntryMark 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. -
isRead
public boolean isRead()Description copied from interface:MVCCEntryCheck 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.
-