public class PassivationManagerImpl extends AbstractPassivationManager
Constructor and Description |
---|
PassivationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getPassivations() |
boolean |
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.
|
boolean |
isEnabled() |
void |
passivateAll()
Passivates all entries that are in memory.
|
CompletionStage<Void> |
passivateAllAsync()
Start passivating all entries that are in memory.
|
CompletionStage<Void> |
passivateAsync(InternalCacheEntry<?,?> entry)
Passivates the entry in a non blocking fashion.
|
void |
resetStatistics()
Resets an interceptor's cache statistics
|
void |
setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available
through the mbean.
|
void |
skipPassivationOnStop(boolean skip)
Skips the passivation when the cache is stopped.
|
void |
start() |
public void start()
public boolean isEnabled()
public CompletionStage<Void> passivateAsync(InternalCacheEntry<?,?> entry)
PassivationManager
entry
- entry to passivatepublic void passivateAll() throws PersistenceException
AbstractPassivationManager
passivateAll
in class AbstractPassivationManager
PersistenceException
public CompletionStage<Void> passivateAllAsync() throws PersistenceException
PassivationManager
PersistenceException
public void skipPassivationOnStop(boolean skip)
PassivationManager
public long getPassivations()
getPassivations
in interface PassivationManager
getPassivations
in class AbstractPassivationManager
public boolean getStatisticsEnabled()
JmxStatisticsExposer
public void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposer
enabled
- true if statistics should be capturedpublic void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface PassivationManager
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class AbstractPassivationManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.