Class ByRealmIdQueryConditionalRemover<K,V extends SessionEntity> 
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.remote.remover.query.ByRealmIdQueryConditionalRemover<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> 
A 
ConditionalRemover implementation to delete SessionEntity based on the realmId value.
 This implementation uses Infinispan Ickle Queries to delete all entries belonging to the realm.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecuteRemovals(org.infinispan.client.hotrod.RemoteCache<K, V> cache, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage) Executes the conditional removes in theRemoteCache.voidremoveByRealmId(String realmId) booleanwillRemove(K key, V value) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.remover.ConditionalRemoverwillRemove
- 
Constructor Details- 
ByRealmIdQueryConditionalRemover
 
- 
- 
Method Details- 
removeByRealmId
- 
willRemove- Parameters:
- key- The entry's key to test.
- value- The entry's value to test.
- Returns:
- trueif the entry will be removed from the- RemoteCache.
 
- 
executeRemovalspublic void executeRemovals(org.infinispan.client.hotrod.RemoteCache<K, V> cache, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage) Description copied from interface:ConditionalRemoverExecutes the conditional removes in theRemoteCache.- Specified by:
- executeRemovalsin interface- ConditionalRemover<K,- V> 
- Parameters:
- cache- The- RemoteCacheto perform the remove operations.
- stage- The- AggregateCompletionStageto add any incomplete tasks.
 
 
-