Package org.infinispan.eviction
Interface ActivationManager
-
public interface ActivationManagerControls activation of cache entries that have been passivated.- Since:
- 5.2
- Author:
- Galder ZamarreƱo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetActivationCount()Get number of activations executed.voidonRemove(Object key, boolean newEntry)Remove key and associated value from cache store and update the activation counter.voidonUpdate(Object key, boolean newEntry)Remove key and associated value from cache store and update the activation counter.
-
-
-
Method Detail
-
onUpdate
void onUpdate(Object key, boolean newEntry)
Remove key and associated value from cache store and update the activation counter.- Parameters:
key- Key to removenewEntry-trueif the entry does not exists in-memory
-
onRemove
void onRemove(Object key, boolean newEntry)
Remove key and associated value from cache store and update the activation counter. The key is also removed from the shared configured stores.- Parameters:
key- Key to activatenewEntry-trueif the entry does not exists in-memory
-
getActivationCount
long getActivationCount()
Get number of activations executed.- Returns:
- A long representing the number of activations
-
-