Interface DataContainer.ComputeAction<K,V>

Enclosing interface:
DataContainer<K,V>

public static interface DataContainer.ComputeAction<K,V>
  • Method Details

    • compute

      InternalCacheEntry<K,V> compute(K key, InternalCacheEntry<K,V> oldEntry, InternalEntryFactory factory)
      Computes the new value for the key.
      Returns:
      The new InternalCacheEntry for the key, null if the entry is to be removed or oldEntry is the entry is not to be changed (i.e. not entries are added, removed or touched).