@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 ActivationManager
Constructor and Description |
---|
ActivationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
activateAsync(Object key,
int segment)
Activates an entry, effectively removing it from the underlying persistence store.
|
long |
getActivationCount()
Get number of activations executed.
|
String |
getActivations() |
long |
getPendingActivationCount() |
boolean |
getStatisticsEnabled() |
void |
resetStatistics() |
void |
setStatisticsEnabled(boolean statisticsEnabled) |
void |
start() |
public void start()
public CompletionStage<Void> activateAsync(Object key, int segment)
ActivationManager
activateAsync
in interface ActivationManager
key
- key to activatesegment
- segment the key maps to@ManagedAttribute(description="Number of activation events", displayName="Number of cache entries activated", measurementType=TRENDSUP) public long getActivationCount()
ActivationManager
getActivationCount
in interface ActivationManager
@ManagedAttribute(description="Number of activation events", displayName="Number of cache entries activated", measurementType=TRENDSUP) public String getActivations()
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics()
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", writable=true) public boolean getStatisticsEnabled()
public void setStatisticsEnabled(boolean statisticsEnabled)
public long getPendingActivationCount()
getPendingActivationCount
in interface ActivationManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.