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
-
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
Returns whether an interceptor's statistics are being captured.boolean
void
Passivates 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.void
Resets an interceptor's cache statisticsvoid
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.
-
Constructor Details
-
PassivationManagerStub
public PassivationManagerStub()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
passivateAsync
Description copied from interface:PassivationManager
Passivates 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:AbstractPassivationManager
Passivates all entries that are in memory. This method does not notify listeners of passivation.- Specified by:
passivateAll
in classAbstractPassivationManager
- Throws:
PersistenceException
-
passivateAllAsync
Description copied from interface:PassivationManager
Start 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:PassivationManager
Skips the passivation when the cache is stopped. -
getPassivations
public long getPassivations()- Specified by:
getPassivations
in interfacePassivationManager
- Specified by:
getPassivations
in classAbstractPassivationManager
-
resetStatistics
public void resetStatistics()Description copied from interface:JmxStatisticsExposer
Resets an interceptor's cache statistics- Specified by:
resetStatistics
in interfaceJmxStatisticsExposer
- Specified by:
resetStatistics
in interfacePassivationManager
- Specified by:
resetStatistics
in classAbstractPassivationManager
-
getStatisticsEnabled
public boolean getStatisticsEnabled()Description copied from interface:JmxStatisticsExposer
Returns whether an interceptor's statistics are being captured.- Returns:
- true if statistics are captured
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) Description copied from interface:JmxStatisticsExposer
Enables 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
-