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 aReadCommittedEntrywith the key location.- Since:
- 11
- Author:
- Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description AnchoredReadCommittedEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>commit(int segment, org.infinispan.container.impl.InternalDataContainer<K,V> container)voidcommit(org.infinispan.container.DataContainer<K,V> container)org.infinispan.remoting.transport.AddressgetLocation()voidsetLocation(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)StringtoString()-
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, updatePreviousValue
-
-
-
-
Method Detail
-
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
public CompletionStage<Void> commit(int segment, org.infinispan.container.impl.InternalDataContainer<K,V> container)
-
-