Package org.infinispan.eviction
Interface PassivationManager
-
- All Superinterfaces:
JmxStatisticsExposer
@ThreadSafe public interface PassivationManager extends JmxStatisticsExposer
A passivation manager- Version:
- 4.1
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetPassivations()booleanisEnabled()default voidpassivate(InternalCacheEntry entry)voidpassivateAll()Passivates all entries that are in memory.java.util.concurrent.CompletionStage<java.lang.Void>passivateAsync(InternalCacheEntry entry)This method will block the current thread while passivating the entry.voidresetStatistics()Resets an interceptor's cache statisticsvoidskipPassivationOnStop(boolean skip)Skips the passivation when the cache is stopped.-
Methods inherited from interface org.infinispan.jmx.JmxStatisticsExposer
getStatisticsEnabled, setStatisticsEnabled
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
-
passivate
default void passivate(InternalCacheEntry entry)
-
passivateAsync
java.util.concurrent.CompletionStage<java.lang.Void> passivateAsync(InternalCacheEntry entry)
This method will block the current thread while passivating the entry. This should be fixed when non blocking cache stores are implemented. This method does not block while notifying listeners however.- Parameters:
entry- entry to passivate- Returns:
- CompletionStage that when complete will have notified all listeners
-
passivateAll
void passivateAll() throws PersistenceExceptionPassivates all entries that are in memory. This method does not notify listeners of passivation.- Throws:
PersistenceException
-
skipPassivationOnStop
void skipPassivationOnStop(boolean skip)
Skips the passivation when the cache is stopped.
-
getPassivations
long getPassivations()
-
resetStatistics
void resetStatistics()
Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer
-
-