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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Void>
activateAsync(Object key, int segment)
Activates an entry, effectively removing it from the underlying persistence store.long
getActivationCount()
Get number of activations executed.long
getPendingActivationCount()
-
-
-
Method Detail
-
activateAsync
CompletionStage<Void> activateAsync(Object key, int segment)
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
-
-