Package org.infinispan.eviction.impl
Class ActivationManagerImpl
- java.lang.Object
-
- org.infinispan.eviction.impl.ActivationManagerImpl
-
- All Implemented Interfaces:
ActivationManager
public class ActivationManagerImpl extends Object implements ActivationManager
Concrete implementation of activation logic manager.- Since:
- 5.2
- Author:
- Galder ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description ActivationManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getActivationCount()
Get number of activations executed.String
getActivations()
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.void
resetStatistics()
void
start()
-
-
-
Method Detail
-
start
public void start()
-
onUpdate
public void onUpdate(Object key, boolean newEntry)
Description copied from interface:ActivationManager
Remove key and associated value from cache store and update the activation counter.- Specified by:
onUpdate
in interfaceActivationManager
- Parameters:
key
- Key to removenewEntry
-true
if the entry does not exists in-memory
-
onRemove
public void onRemove(Object key, boolean newEntry)
Description copied from interface:ActivationManager
Remove key and associated value from cache store and update the activation counter. The key is also removed from the shared configured stores.- Specified by:
onRemove
in interfaceActivationManager
- Parameters:
key
- Key to activatenewEntry
-true
if the entry does not exists in-memory
-
getActivationCount
public long getActivationCount()
Description copied from interface:ActivationManager
Get number of activations executed.- Specified by:
getActivationCount
in interfaceActivationManager
- Returns:
- A long representing the number of activations
-
getActivations
public String getActivations()
-
resetStatistics
public void resetStatistics()
-
-