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 PassivationManager
A passivation manager
- Version:
- 4.1
- Author:
- Manik Surtani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longabstract voidPassivates all entries that are in memory.abstract voidResets an interceptor's cache statisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.jmx.JmxStatisticsExposer
getStatisticsEnabled, setStatisticsEnabledMethods inherited from interface org.infinispan.eviction.impl.PassivationManager
isEnabled, passivateAllAsync, passivateAsync, skipPassivationOnStop
-
Constructor Details
-
AbstractPassivationManager
public AbstractPassivationManager()
-
-
Method Details
-
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
-