Package org.infinispan.container
Interface DataContainer.ComputeAction<K,V>
- Enclosing interface:
- DataContainer<K,
V>
public static interface DataContainer.ComputeAction<K,V>
-
Method Summary
Modifier and TypeMethodDescriptioncompute(K key, InternalCacheEntry<K, V> oldEntry, InternalEntryFactory factory) Computes the new value for the key.
-
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
InternalCacheEntryfor the key,nullif the entry is to be removed oroldEntryis the entry is not to be changed (i.e. not entries are added, removed or touched).
-