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
-
Method Summary
Modifier and TypeMethodDescriptionclone()
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
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) final V
Sets the value of the entry, returning the previous valueboolean
Methods 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:
setSkipLookup
in interfaceCacheEntry<K,
V> - Overrides:
setSkipLookup
in classReadCommittedEntry<K,
V>
-
skipLookup
public boolean skipLookup()- Specified by:
skipLookup
in interfaceCacheEntry<K,
V> - Overrides:
skipLookup
in classReadCommittedEntry<K,
V> - Returns:
true
if the value must not be fetch from an external source
-
clone
-
setValue
Description copied from interface:CacheEntry
Sets the value of the entry, returning the previous value -
setRead
public void setRead()Description copied from interface:MVCCEntry
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. -
isRead
public boolean isRead()Description copied from interface:MVCCEntry
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.
-