Package org.infinispan.eviction
Interface ActivationManager
-
public interface ActivationManagerControls 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)longgetActivationCount()Get number of activations executed.longgetPendingActivationCount()voidonRemove(java.lang.Object key, boolean newEntry)Deprecated.since 10.0 - please useonRemoveAsync(Object, boolean)instead.java.util.concurrent.CompletionStage<java.lang.Void>onRemoveAsync(java.lang.Object key, boolean newEntry)Deprecated.voidonUpdate(java.lang.Object key, boolean newEntry)Deprecated.since 10.0 - please useonUpdateAsync(Object, boolean)instead.java.util.concurrent.CompletionStage<java.lang.Void>onUpdateAsync(java.lang.Object key, boolean newEntry)Deprecated.
-
-
-
Method Detail
-
onUpdate
@Deprecated void onUpdate(java.lang.Object key, boolean newEntry)Deprecated.since 10.0 - please useonUpdateAsync(Object, boolean)instead.Almost the same asonUpdateAsync(Object, boolean)except that it is performed synchronously on the same thread that invoked it. This method will eventually be removed when the data container can handle asynchronous passivation/activation.
-
onRemove
@Deprecated void onRemove(java.lang.Object key, boolean newEntry)Deprecated.since 10.0 - please useonRemoveAsync(Object, boolean)instead.Almost the same asonRemoveAsync(Object, boolean)except that it is performed synchronously on the same thread that invoked it. This method will eventually be removed when the data container can handle asynchronous passivation/activation.
-
onUpdateAsync
@Deprecated java.util.concurrent.CompletionStage<java.lang.Void> onUpdateAsync(java.lang.Object key, boolean newEntry)Deprecated.Remove key and associated value from cache store and update the activation counter.- Parameters:
key- Key to removenewEntry-trueif the entry does not exists in-memory- Returns:
- stage then when complete has updated appropriate stores
-
onRemoveAsync
@Deprecated java.util.concurrent.CompletionStage<java.lang.Void> onRemoveAsync(java.lang.Object key, boolean newEntry)Deprecated.Remove key and associated value from cache store and update the activation counter. The key is also removed from the shared configured stores.- Parameters:
key- Key to activatenewEntry-trueif the entry does not exists in-memory- Returns:
- stage then when complete has updated appropriate stores
-
activateAsync
java.util.concurrent.CompletionStage<java.lang.Void> activateAsync(java.lang.Object key, int segment)
-
getPendingActivationCount
long getPendingActivationCount()
-
getActivationCount
long getActivationCount()
Get number of activations executed.- Returns:
- A long representing the number of activations
-
-