Package org.infinispan.eviction.impl
Class AbstractPassivationManager
- java.lang.Object
-
- org.infinispan.eviction.impl.AbstractPassivationManager
-
- All Implemented Interfaces:
PassivationManager,JmxStatisticsExposer
- Direct Known Subclasses:
PassivationManagerImpl,PassivationManagerStub
@ThreadSafe @MBean(objectName="Passivation", description="Component that handles passivating entries to a CacheStore on eviction.") public abstract class AbstractPassivationManager extends Object implements PassivationManagerA passivation manager- Version:
- 4.1
- Author:
- Manik Surtani
-
-
Constructor Summary
Constructors Constructor Description AbstractPassivationManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract longgetPassivations()abstract voidpassivateAll()Passivates all entries that are in memory.abstract voidresetStatistics()Resets an interceptor's cache statistics-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.jmx.JmxStatisticsExposer
getStatisticsEnabled, setStatisticsEnabled
-
Methods inherited from interface org.infinispan.eviction.impl.PassivationManager
isEnabled, passivateAllAsync, passivateAsync, skipPassivationOnStop
-
-
-
-
Method Detail
-
passivateAll
@ManagedOperation(description="Passivate all entries to the CacheStore", displayName="Passivate all") public abstract void passivateAll() throws PersistenceExceptionPassivates all entries that are in memory. This method does not notify listeners of passivation.- Throws:
PersistenceException
-
getPassivations
@ManagedAttribute(description="Number of passivation events", displayName="Number of cache passivations", measurementType=TRENDSUP) public abstract long getPassivations()- Specified by:
getPassivationsin interfacePassivationManager
-
resetStatistics
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public abstract void resetStatistics()Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer- Specified by:
resetStatisticsin interfacePassivationManager
-
-