Class AtomicCacheEntry<K,V,R>

java.lang.Object
org.apache.nifi.distributed.cache.client.AtomicCacheEntry<K,V,R>

public class AtomicCacheEntry<K,V,R> extends Object
  • Field Details

    • key

      private final K key
    • value

      private V value
    • revision

      private final R revision
  • Constructor Details

    • AtomicCacheEntry

      public AtomicCacheEntry(K key, V value, R revision)
      Create new cache entry.
      Parameters:
      key - cache key
      value - cache value
      revision - cache revision, can be null with a brand new entry
  • Method Details

    • getRevision

      public Optional<R> getRevision()
      Returns:
      the latest revision stored in a cache server
    • getKey

      public K getKey()
    • getValue

      public V getValue()
    • setValue

      public void setValue(V value)