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
        This method should no longer be used - please use activateAsync(Object, int) instead.
      • onRemove

        @Deprecated
        void onRemove​(java.lang.Object key,
                      boolean newEntry)
        Deprecated.
        since 10.0
        This method should no longer be used - please use activateAsync(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 activate
        segment - 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