Package org.infinispan.eviction
Interface ActivationManager
-
public interface ActivationManager
Controls 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 long
getActivationCount()
Get number of activations executed.void
onRemove(Object key, boolean newEntry)
Remove key and associated value from cache store and update the activation counter.void
onUpdate(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
-true
if 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
-true
if the entry does not exists in-memory
-
getActivationCount
long getActivationCount()
Get number of activations executed.- Returns:
- A long representing the number of activations
-
-