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

    Constructors
    Constructor
    Description
    AnchoredReadCommittedEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    commit(int segment, org.infinispan.container.impl.InternalDataContainer<K,V> container)
     
    void
    commit(org.infinispan.container.DataContainer<K,V> container)
     
    org.infinispan.remoting.transport.Address
     
    void
    setLocation(org.infinispan.remoting.transport.Address location)
    Save the anchor location of the key outside the regular metadata.
    static void
    setMissingLocation(org.infinispan.container.entries.CacheEntry<?,?> cacheEntry, org.infinispan.remoting.transport.Address location)
     
     

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Map.Entry

    equals, hashCode

    Methods inherited from interface org.infinispan.container.entries.MVCCEntry

    isRead, setRead
  • Constructor Details

    • AnchoredReadCommittedEntry

      public AnchoredReadCommittedEntry(K key, V value, org.infinispan.metadata.Metadata metadata)
  • Method Details

    • getLocation

      public org.infinispan.remoting.transport.Address getLocation()
      Returns:
      The anchor location of the key, or null if 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 void commit(org.infinispan.container.DataContainer<K,V> container)
      Specified by:
      commit in interface org.infinispan.container.entries.CacheEntry<K,V>
      Overrides:
      commit in class org.infinispan.container.entries.ReadCommittedEntry<K,V>
    • commit

      public CompletionStage<Void> commit(int segment, org.infinispan.container.impl.InternalDataContainer<K,V> container)
      Overrides:
      commit in class org.infinispan.container.entries.ReadCommittedEntry<K,V>
    • toString

      public String toString()
      Overrides:
      toString in class org.infinispan.container.entries.ReadCommittedEntry<K,V>