Interface ActivationManager


  • public interface ActivationManager
    Controls activation of cache entries that have been passivated.
    Since:
    5.2
    Author:
    Galder ZamarreƱo
    • Method Detail

      • onUpdate

        @Deprecated
        void onUpdate​(java.lang.Object key,
                      boolean newEntry)
        Deprecated.
        since 10.0 - please use onUpdateAsync(Object, boolean) instead.
        Almost the same as onUpdateAsync(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 use onRemoveAsync(Object, boolean) instead.
        Almost the same as onRemoveAsync(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 remove
        newEntry - true if 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 activate
        newEntry - true if 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