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
InternalCacheEntry
for the key,null
if the entry is to be removed oroldEntry
is the entry is not to be changed (i.e. not entries are added, removed or touched).
-