@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)
ActivationManageractivateAsync in interface ActivationManagerkey - 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()
ActivationManagergetActivationCount 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 ActivationManagerCopyright © 2022 JBoss by Red Hat. All rights reserved.