Package org.infinispan.eviction.impl
Interface ActivationManager
- All Known Implementing Classes:
ActivationManagerImpl
,ActivationManagerStub
public interface ActivationManager
Controls activation of cache entries that have been passivated.
- Since:
- 5.2
- Author:
- Galder ZamarreƱo
-
Method Summary
Modifier and TypeMethodDescriptionactivateAsync
(Object key, int segment) Activates an entry, effectively removing it from the underlying persistence store.long
Get number of activations executed.long
-
Method Details
-
activateAsync
Activates an entry, effectively removing it from the underlying persistence store. Note that the removal may be done asynchronously and when the returned Stage is complete the removal is also completed.- Parameters:
key
- key to activatesegment
- segment the key maps to- Returns:
- stage that when complete the entry has been activated
-
getPendingActivationCount
long getPendingActivationCount() -
getActivationCount
long getActivationCount()Get number of activations executed.- Returns:
- A long representing the number of activations
-