Package org.infinispan.eviction.impl
Class PassivationManagerStub
java.lang.Object
org.infinispan.eviction.impl.AbstractPassivationManager
org.infinispan.eviction.impl.PassivationManagerStub
- All Implemented Interfaces:
PassivationManager,JmxStatisticsExposer
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanReturns whether an interceptor's statistics are being captured.booleanvoidPassivates all entries that are in memory.Start passivating all entries that are in memory.passivateAsync(InternalCacheEntry entry) Passivates the entry in a non blocking fashion.voidResets an interceptor's cache statisticsvoidsetStatisticsEnabled(boolean enabled) Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.voidskipPassivationOnStop(boolean skip) Skips the passivation when the cache is stopped.
-
Constructor Details
-
PassivationManagerStub
public PassivationManagerStub()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
passivateAsync
Description copied from interface:PassivationManagerPassivates the entry in a non blocking fashion.- Parameters:
entry- entry to passivate- Returns:
- CompletionStage that when complete will have passivated the entry and notified listeners
-
passivateAll
Description copied from class:AbstractPassivationManagerPassivates all entries that are in memory. This method does not notify listeners of passivation.- Specified by:
passivateAllin classAbstractPassivationManager- Throws:
PersistenceException
-
passivateAllAsync
Description copied from interface:PassivationManagerStart passivating all entries that are in memory. This method does not notify listeners of passivation. -
skipPassivationOnStop
public void skipPassivationOnStop(boolean skip) Description copied from interface:PassivationManagerSkips the passivation when the cache is stopped. -
getPassivations
public long getPassivations()- Specified by:
getPassivationsin interfacePassivationManager- Specified by:
getPassivationsin classAbstractPassivationManager
-
resetStatistics
public void resetStatistics()Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer- Specified by:
resetStatisticsin interfacePassivationManager- Specified by:
resetStatisticsin classAbstractPassivationManager
-
getStatisticsEnabled
public boolean getStatisticsEnabled()Description copied from interface:JmxStatisticsExposerReturns whether an interceptor's statistics are being captured.- Returns:
- true if statistics are captured
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) Description copied from interface:JmxStatisticsExposerEnables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.- Parameters:
enabled- true if statistics should be captured
-