Class 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

      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)  
      void commit​(org.infinispan.container.DataContainer<K,​V> container)  
      org.infinispan.remoting.transport.Address getLocation()  
      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)  
      String 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, updatePreviousValue
      • Methods inherited from interface org.infinispan.container.entries.MVCCEntry

        isRead, setRead
    • Constructor Detail

      • AnchoredReadCommittedEntry

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

      • 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>