Package org.infinispan.eviction.impl
Class PassivationManagerImpl
- java.lang.Object
-
- org.infinispan.eviction.impl.PassivationManagerImpl
-
- All Implemented Interfaces:
PassivationManager
,JmxStatisticsExposer
public class PassivationManagerImpl extends Object implements PassivationManager
-
-
Constructor Summary
Constructors Constructor Description PassivationManagerImpl()
-
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
passivate(InternalCacheEntry entry)
void
passivateAll()
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.void
start()
-
-
-
Method Detail
-
start
public void start()
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfacePassivationManager
-
passivate
public void passivate(InternalCacheEntry entry)
- Specified by:
passivate
in interfacePassivationManager
-
passivateAll
public void passivateAll() throws PersistenceException
- Specified by:
passivateAll
in interfacePassivationManager
- Throws:
PersistenceException
-
skipPassivationOnStop
public void skipPassivationOnStop(boolean skip)
Description copied from interface:PassivationManager
Skips the passivation when the cache is stopped.- Specified by:
skipPassivationOnStop
in interfacePassivationManager
-
getPassivations
public long getPassivations()
- Specified by:
getPassivations
in interfacePassivationManager
-
getStatisticsEnabled
public boolean getStatisticsEnabled()
Description copied from interface:JmxStatisticsExposer
Returns whether an interceptor's statistics are being captured.- Specified by:
getStatisticsEnabled
in interfaceJmxStatisticsExposer
- 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.- Specified by:
setStatisticsEnabled
in interfaceJmxStatisticsExposer
- Parameters:
enabled
- true if statistics should be captured
-
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
-
-