Package org.infinispan.eviction.impl
Class ActivationManagerImpl
- java.lang.Object
-
- org.infinispan.eviction.impl.ActivationManagerImpl
-
- All Implemented Interfaces:
ActivationManager
@MBean(objectName="Activation", description="Component that handles activating entries that have been passivated to a CacheStore by loading them into memory.") public class ActivationManagerImpl extends Object implements ActivationManagerConcrete 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 CompletionStage<Void>activateAsync(Object key, int segment)Activates an entry, effectively removing it from the underlying persistence store.longgetActivationCount()Get number of activations executed.StringgetActivations()longgetPendingActivationCount()booleangetStatisticsEnabled()voidresetStatistics()voidsetStatisticsEnabled(boolean statisticsEnabled)voidstart()
-
-
-
Method Detail
-
start
public void start()
-
activateAsync
public CompletionStage<Void> activateAsync(Object key, int segment)
Description copied from interface:ActivationManagerActivates an entry, effectively removing it from the underlying persistence store. Note that the removal may be done asynchronously and when the returned Stage is complete the removal is also completed.- Specified by:
activateAsyncin interfaceActivationManager- Parameters:
key- key to activatesegment- segment the key maps to- Returns:
- stage that when complete the entry has been activated
-
getActivationCount
@ManagedAttribute(description="Number of activation events", displayName="Number of cache entries activated", measurementType=TRENDSUP) public long getActivationCount()Description copied from interface:ActivationManagerGet number of activations executed.- Specified by:
getActivationCountin interfaceActivationManager- Returns:
- A long representing the number of activations
-
getActivations
@ManagedAttribute(description="Number of activation events", displayName="Number of cache entries activated", measurementType=TRENDSUP) public String getActivations()
-
resetStatistics
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics()
-
getStatisticsEnabled
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", writable=true) public boolean getStatisticsEnabled()
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
-
getPendingActivationCount
public long getPendingActivationCount()
- Specified by:
getPendingActivationCountin interfaceActivationManager
-
-