Package org.infinispan.anchored.impl
Class AnchoredReadCommittedEntry<K,V>
java.lang.Object
org.infinispan.container.entries.ReadCommittedEntry<K,V>
org.infinispan.anchored.impl.AnchoredReadCommittedEntry<K,V>
- All Implemented Interfaces:
Cloneable,Map.Entry<K,,V> org.infinispan.container.entries.CacheEntry<K,,V> org.infinispan.container.entries.metadata.MetadataAware,org.infinispan.container.entries.MVCCEntry<K,V>
public class AnchoredReadCommittedEntry<K,V>
extends org.infinispan.container.entries.ReadCommittedEntry<K,V>
Extend a
ReadCommittedEntry with the key location.- Since:
- 11
- Author:
- Dan Berindei
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.container.entries.ReadCommittedEntry
org.infinispan.container.entries.ReadCommittedEntry.Flags -
Field Summary
Fields inherited from class org.infinispan.container.entries.ReadCommittedEntry
created, flags, internalMetadata, key, lastUsed, metadata, oldMetadata, oldValue, value -
Constructor Summary
ConstructorsConstructorDescriptionAnchoredReadCommittedEntry(K key, V value, org.infinispan.metadata.Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.infinispan.remoting.transport.AddressvoidsetLocation(org.infinispan.remoting.transport.Address location) Save the anchor location of the key outside the regular metadata.static voidsetMissingLocation(org.infinispan.container.entries.CacheEntry<?, ?> cacheEntry, org.infinispan.remoting.transport.Address location) toString()Methods inherited from class org.infinispan.container.entries.ReadCommittedEntry
clone, 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, setSkipLookup, setSkipSharedStore, setValue, skipLookup, updatePreviousValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.container.entries.MVCCEntry
isRead, setRead
-
Constructor Details
-
AnchoredReadCommittedEntry
-
-
Method Details
-
getLocation
public org.infinispan.remoting.transport.Address getLocation()- Returns:
- The anchor location of the key, or
nullif the local node is the anchor location.
-
setLocation
public void setLocation(org.infinispan.remoting.transport.Address location) Save the anchor location of the key outside the regular metadata. That way the primary can use the regular metadata for notifications/indexing and still store the location -
setMissingLocation
public static void setMissingLocation(org.infinispan.container.entries.CacheEntry<?, ?> cacheEntry, org.infinispan.remoting.transport.Address location) -
commit
-
commit
public CompletionStage<Void> commit(int segment, org.infinispan.container.impl.InternalDataContainer<K, V> container) -
toString
-