Package org.infinispan.container
Interface DataContainer.ComputeAction<K,V>
-
- Enclosing interface:
- DataContainer<K,V>
public static interface DataContainer.ComputeAction<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.infinispan.container.entries.InternalCacheEntry<K,V>
compute(K key, org.infinispan.container.entries.InternalCacheEntry<K,V> oldEntry, org.infinispan.container.impl.InternalEntryFactory factory)
Computes the new value for the key.
-
-
-
Method Detail
-
compute
org.infinispan.container.entries.InternalCacheEntry<K,V> compute(K key, org.infinispan.container.entries.InternalCacheEntry<K,V> oldEntry, org.infinispan.container.impl.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).
-
-