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)
PassivationManager
entry
- entry to passivatepublic void passivateAll() throws PersistenceException
AbstractPassivationManager
passivateAll
in class AbstractPassivationManager
PersistenceException
public CompletionStage<Void> passivateAllAsync()
PassivationManager
public void skipPassivationOnStop(boolean skip)
PassivationManager
public long getPassivations()
getPassivations
in interface PassivationManager
getPassivations
in class AbstractPassivationManager
public void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface PassivationManager
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class AbstractPassivationManager
public boolean getStatisticsEnabled()
JmxStatisticsExposer
public void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposer
enabled
- true if statistics should be capturedCopyright © 2021 JBoss by Red Hat. All rights reserved.