Package org.infinispan.eviction
Interface ActivationManager
-
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 Deprecated Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.lang.Void>
activateAsync(java.lang.Object key, int segment)
Activates an entry, effectively removing it from the underlying persistence store.long
getActivationCount()
Get number of activations executed.long
getPendingActivationCount()
void
onRemove(java.lang.Object key, boolean newEntry)
Deprecated.since 10.0void
onUpdate(java.lang.Object key, boolean newEntry)
Deprecated.since 10.0
-
-
-
Method Detail
-
onUpdate
@Deprecated void onUpdate(java.lang.Object key, boolean newEntry)
Deprecated.since 10.0This method should no longer be used - please useactivateAsync(Object, int)
instead.
-
onRemove
@Deprecated void onRemove(java.lang.Object key, boolean newEntry)
Deprecated.since 10.0This method should no longer be used - please useactivateAsync(Object, int)
instead.
-
activateAsync
java.util.concurrent.CompletionStage<java.lang.Void> activateAsync(java.lang.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
-
-