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 theRemoteCache
.V
- The value's type stored in theRemoteCache
.
- All Implemented Interfaces:
ConditionalRemover<K,
V>
A
ConditionalRemover
that does not remove anything.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeRemovals
(org.infinispan.client.hotrod.RemoteCache<K, V> cache, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage) Executes the conditional removes in theRemoteCache
.static <K1,
V1> ConditionalRemover<K1, V1> instance()
boolean
willRemove
(K key, V value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.remover.ConditionalRemover
willRemove
-
Constructor Details
-
EmptyConditionalRemover
public EmptyConditionalRemover()
-
-
Method Details
-
instance
-
willRemove
- Specified by:
willRemove
in interfaceConditionalRemover<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 theRemoteCache
.
-
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 theRemoteCache
.- Specified by:
executeRemovals
in interfaceConditionalRemover<K,
V> - Parameters:
cache
- TheRemoteCache
to perform the remove operations.stage
- TheAggregateCompletionStage
to add any incomplete tasks.
-