public class PassivationManagerStub extends AbstractPassivationManager
| Constructor and Description |
|---|
PassivationManagerStub() |
| 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.
|
public boolean isEnabled()
public CompletionStage<Void> passivateAsync(InternalCacheEntry entry)
PassivationManagerentry - entry to passivatepublic void passivateAll()
throws PersistenceException
AbstractPassivationManagerpassivateAll in class AbstractPassivationManagerPersistenceExceptionpublic CompletionStage<Void> passivateAllAsync()
PassivationManagerpublic void skipPassivationOnStop(boolean skip)
PassivationManagerpublic long getPassivations()
getPassivations in interface PassivationManagergetPassivations in class AbstractPassivationManagerpublic void resetStatistics()
JmxStatisticsExposerresetStatistics in interface PassivationManagerresetStatistics in interface JmxStatisticsExposerresetStatistics in class AbstractPassivationManagerpublic boolean getStatisticsEnabled()
JmxStatisticsExposerpublic void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposerenabled - true if statistics should be capturedCopyright © 2022 JBoss by Red Hat. All rights reserved.