Class EmptyConditionalRemover<K,V>

java.lang.Object
org.keycloak.models.sessions.infinispan.changes.remote.remover.EmptyConditionalRemover<K,V>
Type Parameters:
K - The key's type stored in the RemoteCache.
V - The value's type stored in the RemoteCache.
All Implemented Interfaces:
ConditionalRemover<K,V>

public class EmptyConditionalRemover<K,V> extends Object implements ConditionalRemover<K,V>
A ConditionalRemover that does not remove anything.
  • Constructor Details

    • EmptyConditionalRemover

      public EmptyConditionalRemover()
  • Method Details

    • instance

      public static <K1, V1> ConditionalRemover<K1,V1> instance()
    • willRemove

      public boolean willRemove(K key, V value)
      Specified by:
      willRemove in interface ConditionalRemover<K,V>
      Parameters:
      key - The entry's key to test.
      value - The entry's value to test.
      Returns:
      true if the entry will be removed from the RemoteCache.
    • executeRemovals

      public void executeRemovals(org.infinispan.client.hotrod.RemoteCache<K,V> cache, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage)
      Description copied from interface: ConditionalRemover
      Executes the conditional removes in the RemoteCache.
      Specified by:
      executeRemovals in interface ConditionalRemover<K,V>
      Parameters:
      cache - The RemoteCache to perform the remove operations.
      stage - The AggregateCompletionStage to add any incomplete tasks.