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
public class PassivationManagerStub extends AbstractPassivationManager
- Author:
- Radim Vansa <rvansa@redhat.com>
-
-
Constructor Summary
Constructors Constructor Description PassivationManagerStub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPassivations()booleangetStatisticsEnabled()Returns whether an interceptor's statistics are being captured.booleanisEnabled()voidpassivateAll()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.voidresetStatistics()Resets 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.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
passivateAsync
public CompletionStage<Void> passivateAsync(InternalCacheEntry entry)
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
public void passivateAll() throws PersistenceExceptionDescription 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
public CompletionStage<Void> 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
-
-