Package org.infinispan.eviction
Interface PassivationManager
-
- All Superinterfaces:
JmxStatisticsExposer
- All Known Implementing Classes:
AbstractPassivationManager
@ThreadSafe public interface PassivationManager extends JmxStatisticsExposer
A passivation manager- Version:
- 4.1
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description longgetPassivations()booleanisEnabled()voidpassivate(InternalCacheEntry entry)Deprecated.since 10.0 - please usepassivateAsync(InternalCacheEntry)instead.voidpassivateAll()Passivates all entries that are in memory.java.util.concurrent.CompletionStage<java.lang.Void>passivateAsync(InternalCacheEntry entry)Passivates the entry in a non blocking fashion.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
@Deprecated void passivate(InternalCacheEntry entry)
Deprecated.since 10.0 - please usepassivateAsync(InternalCacheEntry)instead.Almost the same aspassivateAsync(InternalCacheEntry)except that it is performed synchronously on the same thread that invoked it.
-
passivateAsync
java.util.concurrent.CompletionStage<java.lang.Void> passivateAsync(InternalCacheEntry entry)
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
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
-
-