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 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 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.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
passivateAsync
public CompletionStage<Void> passivateAsync(InternalCacheEntry entry)
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
public void passivateAll() throws PersistenceException
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
public CompletionStage<Void> 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
-
-