Class CacheNotifierImpl<K,V>
- java.lang.Object
-
- org.infinispan.notifications.impl.AbstractListenerImpl<Event<K,V>,CacheEntryListenerInvocation<K,V>>
-
- org.infinispan.notifications.cachelistener.CacheNotifierImpl<K,V>
-
- All Implemented Interfaces:
CacheNotifier<K,V>,ClusterCacheNotifier<K,V>,ClassLoaderAwareFilteringListenable<K,V>,ClassLoaderAwareListenable,DataConversionAwareListenable<K,V>,FilteringListenable<K,V>,Listenable
public final class CacheNotifierImpl<K,V> extends org.infinispan.notifications.impl.AbstractListenerImpl<Event<K,V>,CacheEntryListenerInvocation<K,V>> implements ClusterCacheNotifier<K,V>
Helper class that handles all notifications to registered listeners.- Since:
- 4.0
- Author:
- Manik Surtani (manik AT infinispan DOT org), Mircea.Markus@jboss.com, William Burns, anistor@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCacheNotifierImpl.BaseCacheEntryListenerInvocation<K,V>protected classCacheNotifierImpl.CacheInvocationBuilderprotected static classCacheNotifierImpl.ClusteredListenerInvocation<K,V>This class is to be used with cluster listener invocations only when they have included current state.protected classCacheNotifierImpl.DelegatingCacheInvocationBuilder
-
Constructor Summary
Constructors Constructor Description CacheNotifierImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C> java.util.concurrent.CompletionStage<java.lang.Void>addFilteredListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)Asynchronous version ofFilteringListenable.addFilteredListener(Object, CacheEventFilter, CacheEventConverter, Set)<C> java.util.concurrent.CompletionStage<java.lang.Void>addFilteredListenerAsync(ListenerHolder listenerHolder, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)voidaddListener(java.lang.Object listener, KeyFilter<? super K> filter)Adds a listener to the component.voidaddListener(java.lang.Object listener, KeyFilter<? super K> filter, java.lang.ClassLoader classLoader)Adds a listener to the component.<C> voidaddListener(ListenerHolder listenerHolder, KeyFilter<? super K> filter)java.util.concurrent.CompletionStage<java.lang.Void>addListenerAsync(java.lang.Object listener)Asynchronous version ofListenable.addListener(Object)java.util.concurrent.CompletionStage<java.lang.Void>addListenerAsync(java.lang.Object listener, java.lang.ClassLoader classLoader)Asynchronous version ofClassLoaderAwareListenable.addListener(Object, ClassLoader)<C> java.util.concurrent.CompletionStage<java.lang.Void>addListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter)Asynchronous version ofFilteringListenable.addListener(Object, CacheEventFilter, CacheEventConverter)<C> java.util.concurrent.CompletionStage<java.lang.Void>addListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.lang.ClassLoader classLoader)Adds the listener using the provided filter converter and class loader.<C> java.util.concurrent.CompletionStage<java.lang.Void>addListenerAsync(ListenerHolder listenerHolder, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.lang.ClassLoader classLoader)<C> java.util.concurrent.CompletionStage<java.lang.Void>addStorageFormatFilteredListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Class<?>>getAllowedMethodAnnotations(Listener l)java.util.List<CacheEntryListenerInvocation<K,V>>getListenerCollectionForAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)protected org.infinispan.util.logging.LoggetLog()booleanisNotificationAllowed(org.infinispan.commands.FlagAffectedCommand cmd, java.util.List<CacheEntryListenerInvocation<K,V>> listeners)java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntriesEvicted(java.util.Collection<java.util.Map.Entry<K,V>> entries, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntriesEvictedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryActivatedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryCreated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryCreatedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryExpired(K key, V value, Metadata metadata, InvocationContext ctx)Notifies all registered listeners of a CacheEntryExpired event.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryInvalidated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryInvalidatedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryLoadedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryModified(K key, V value, Metadata metadata, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryModifiedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryPassivatedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryRemovedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)Notifies all registered listeners of aCacheEntryVisitedEventevent.java.util.concurrent.CompletionStage<java.lang.Void>notifyClusterListeners(java.util.Collection<ClusterEvent<K,V>> events, java.util.UUID uuid)Method that is invoked on the node that has the given cluster listener that when registered generated the given listenerId.java.util.concurrent.CompletionStage<java.lang.Void>notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)java.util.concurrent.CompletionStage<java.lang.Void>notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)java.util.concurrent.CompletionStage<java.lang.Void>notifyPersistenceAvailabilityChanged(boolean available)java.util.concurrent.CompletionStage<java.lang.Void>notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)java.util.concurrent.CompletionStage<java.lang.Void>notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)Notifies all registered listeners of a transaction completion event.java.util.concurrent.CompletionStage<java.lang.Void>notifyTransactionRegistered(GlobalTransaction globalTransaction, boolean isOriginLocal)Notifies all registered listeners of a transaction registration event.java.util.concurrent.CompletionStage<java.lang.Void>removeListenerAsync(java.lang.Object listener)Asynchronous version ofListenable.removeListener(Object)protected java.util.Set<CacheEntryListenerInvocation<K,V>>removeListenerInvocation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.Object listener)protected voidresumeIfNeeded(javax.transaction.Transaction transaction)java.util.Collection<ClusterListenerReplicateCallable<K,V>>retrieveClusterListenerCallablesToInstall()This method is invoked so that this node can send the details required for a new node to be bootstrapped with the existing cluster listeners that are already installed.voidstart()voidstop()Removes all listeners from the notifierprotected javax.transaction.TransactionsuspendIfNeeded()-
Methods inherited from class org.infinispan.notifications.impl.AbstractListenerImpl
canApply, composeStageIfNeeded, findListenerCallbacks, getListeners, hasListener, removeListenerFromMaps, resumeOnCPU, testListenerClassValidity, testListenerMethodValidity, validateAndAddFilterListenerInvocations, validateAndAddListenerInvocations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.notifications.cachelistener.CacheNotifier
hasListener
-
Methods inherited from interface org.infinispan.notifications.ClassLoaderAwareFilteringListenable
addListener
-
Methods inherited from interface org.infinispan.notifications.ClassLoaderAwareListenable
addListener
-
Methods inherited from interface org.infinispan.notifications.DataConversionAwareListenable
addFilteredListener, addListener
-
Methods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addListener, addStorageFormatFilteredListener
-
Methods inherited from interface org.infinispan.notifications.Listenable
addListener, getListeners, removeListener
-
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
Description copied from class:org.infinispan.notifications.impl.AbstractListenerImplRemoves all listeners from the notifier
-
getLog
protected org.infinispan.util.logging.Log getLog()
-
getAllowedMethodAnnotations
protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Class<?>> getAllowedMethodAnnotations(Listener l)
-
suspendIfNeeded
protected final javax.transaction.Transaction suspendIfNeeded()
-
resumeIfNeeded
protected final void resumeIfNeeded(javax.transaction.Transaction transaction)
-
notifyCacheEntryCreated
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryCreated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryCreatedEventevent.- Specified by:
notifyCacheEntryCreatedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryModified
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryModified(K key, V value, Metadata metadata, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryModifiedEventevent.- Specified by:
notifyCacheEntryModifiedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryRemoved
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryRemovedEventevent.- Specified by:
notifyCacheEntryRemovedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryVisited
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryVisitedEventevent.- Specified by:
notifyCacheEntryVisitedin interfaceCacheNotifier<K,V>
-
notifyCacheEntriesEvicted
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntriesEvicted(java.util.Collection<java.util.Map.Entry<K,V>> entries, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntriesEvictedEventevent.- Specified by:
notifyCacheEntriesEvictedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryExpired
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryExpired(K key, V value, Metadata metadata, InvocationContext ctx)
Description copied from interface:CacheNotifierNotifies all registered listeners of a CacheEntryExpired event.- Specified by:
notifyCacheEntryExpiredin interfaceCacheNotifier<K,V>
-
notifyCacheEntryInvalidated
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryInvalidated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryInvalidatedEventevent.- Specified by:
notifyCacheEntryInvalidatedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryLoaded
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryLoadedEventevent.- Specified by:
notifyCacheEntryLoadedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryActivated
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryActivatedEventevent.- Specified by:
notifyCacheEntryActivatedin interfaceCacheNotifier<K,V>
-
notifyCacheEntryPassivated
public java.util.concurrent.CompletionStage<java.lang.Void> notifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, org.infinispan.commands.FlagAffectedCommand command)
Description copied from interface:CacheNotifierNotifies all registered listeners of aCacheEntryPassivatedEventevent.- Specified by:
notifyCacheEntryPassivatedin interfaceCacheNotifier<K,V>
-
notifyTransactionCompleted
public java.util.concurrent.CompletionStage<java.lang.Void> notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
Description copied from interface:CacheNotifierNotifies all registered listeners of a transaction completion event.- Specified by:
notifyTransactionCompletedin interfaceCacheNotifier<K,V>- Parameters:
transaction- the transaction that has just completedsuccessful- if true, the transaction committed. If false, this is a rollback event
-
notifyTransactionRegistered
public java.util.concurrent.CompletionStage<java.lang.Void> notifyTransactionRegistered(GlobalTransaction globalTransaction, boolean isOriginLocal)
Description copied from interface:CacheNotifierNotifies all registered listeners of a transaction registration event.- Specified by:
notifyTransactionRegisteredin interfaceCacheNotifier<K,V>
-
notifyDataRehashed
public java.util.concurrent.CompletionStage<java.lang.Void> notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)
- Specified by:
notifyDataRehashedin interfaceCacheNotifier<K,V>
-
notifyTopologyChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)
- Specified by:
notifyTopologyChangedin interfaceCacheNotifier<K,V>
-
notifyPartitionStatusChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)
- Specified by:
notifyPartitionStatusChangedin interfaceCacheNotifier<K,V>
-
notifyPersistenceAvailabilityChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyPersistenceAvailabilityChanged(boolean available)
- Specified by:
notifyPersistenceAvailabilityChangedin interfaceCacheNotifier<K,V>
-
notifyClusterListeners
public java.util.concurrent.CompletionStage<java.lang.Void> notifyClusterListeners(java.util.Collection<ClusterEvent<K,V>> events, java.util.UUID uuid)
Description copied from interface:ClusterCacheNotifierMethod that is invoked on the node that has the given cluster listener that when registered generated the given listenerId. Note this will notify only cluster listeners and regular listeners are not notified of the events. Will fire the events in the order of the iteration of the collection.- Specified by:
notifyClusterListenersin interfaceClusterCacheNotifier<K,V>
-
retrieveClusterListenerCallablesToInstall
public java.util.Collection<ClusterListenerReplicateCallable<K,V>> retrieveClusterListenerCallablesToInstall()
Description copied from interface:ClusterCacheNotifierThis method is invoked so that this node can send the details required for a new node to be bootstrapped with the existing cluster listeners that are already installed.- Specified by:
retrieveClusterListenerCallablesToInstallin interfaceClusterCacheNotifier<K,V>- Returns:
- A collection of callables that should be invoked on the new node to properly install cluster listener information
-
isNotificationAllowed
public boolean isNotificationAllowed(org.infinispan.commands.FlagAffectedCommand cmd, java.util.List<CacheEntryListenerInvocation<K,V>> listeners)
-
addListenerAsync
public java.util.concurrent.CompletionStage<java.lang.Void> addListenerAsync(java.lang.Object listener)
Description copied from interface:ListenableAsynchronous version ofListenable.addListener(Object)- Specified by:
addListenerAsyncin interfaceListenable- Parameters:
listener- listener to add, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
addListenerAsync
public java.util.concurrent.CompletionStage<java.lang.Void> addListenerAsync(java.lang.Object listener, java.lang.ClassLoader classLoader)Description copied from interface:ClassLoaderAwareListenableAsynchronous version ofClassLoaderAwareListenable.addListener(Object, ClassLoader)- Specified by:
addListenerAsyncin interfaceClassLoaderAwareListenable- Parameters:
listener- listener to add, must not be nullclassLoader- classloader, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
addListener
public void addListener(java.lang.Object listener, KeyFilter<? super K> filter, java.lang.ClassLoader classLoader)Description copied from interface:ClassLoaderAwareFilteringListenableAdds a listener to the component. Typically, listeners would need to be annotated withListenerand further to that, contain methods annotated appropriately, otherwise the listener will not be registered. See theListenerannotation for more information.- Specified by:
addListenerin interfaceClassLoaderAwareFilteringListenable<K,V>- Parameters:
listener- must not be null.classLoader- class loader
-
addListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.lang.ClassLoader classLoader)Adds the listener using the provided filter converter and class loader. The provided builder is used to add additional configuration including (clustered, onlyPrimary & identifier) which can be used after this method is completed to see what values were used in the addition of this listener- Specified by:
addListenerAsyncin interfaceClassLoaderAwareFilteringListenable<K,V>- Type Parameters:
C-- Parameters:
listener-filter-converter-classLoader-- Returns:
-
getListenerCollectionForAnnotation
public java.util.List<CacheEntryListenerInvocation<K,V>> getListenerCollectionForAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
-
addListener
public void addListener(java.lang.Object listener, KeyFilter<? super K> filter)Description copied from interface:FilteringListenableAdds a listener to the component. Typically, listeners would need to be annotated withListenerand further to that, contain methods annotated appropriately, otherwise the listener will not be registered. See theListenerannotation for more information.- Specified by:
addListenerin interfaceFilteringListenable<K,V>- Parameters:
listener- must not be null.
-
addListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter)Description copied from interface:FilteringListenableAsynchronous version ofFilteringListenable.addListener(Object, CacheEventFilter, CacheEventConverter)- Specified by:
addListenerAsyncin interfaceFilteringListenable<K,V>- Parameters:
listener- listener to add, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
addFilteredListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addFilteredListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)Description copied from interface:FilteringListenableAsynchronous version ofFilteringListenable.addFilteredListener(Object, CacheEventFilter, CacheEventConverter, Set)- Specified by:
addFilteredListenerAsyncin interfaceFilteringListenable<K,V>- Parameters:
listener- listener to add, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
addStorageFormatFilteredListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addStorageFormatFilteredListenerAsync(java.lang.Object listener, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)Description copied from interface:FilteringListenableAsynchronous version ofFilteringListenable.addStorageFormatFilteredListener(Object, CacheEventFilter, CacheEventConverter, Set)- Specified by:
addStorageFormatFilteredListenerAsyncin interfaceFilteringListenable<K,V>- Parameters:
listener- listener to add, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
addListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addListenerAsync(ListenerHolder listenerHolder, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.lang.ClassLoader classLoader)
- Specified by:
addListenerAsyncin interfaceDataConversionAwareListenable<K,V>
-
addListener
public <C> void addListener(ListenerHolder listenerHolder, KeyFilter<? super K> filter)
- Specified by:
addListenerin interfaceDataConversionAwareListenable<K,V>
-
addFilteredListenerAsync
public <C> java.util.concurrent.CompletionStage<java.lang.Void> addFilteredListenerAsync(ListenerHolder listenerHolder, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,C> converter, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> filterAnnotations)
- Specified by:
addFilteredListenerAsyncin interfaceDataConversionAwareListenable<K,V>
-
removeListenerAsync
public java.util.concurrent.CompletionStage<java.lang.Void> removeListenerAsync(java.lang.Object listener)
Description copied from interface:ListenableAsynchronous version ofListenable.removeListener(Object)- Specified by:
removeListenerAsyncin interfaceListenable- Specified by:
removeListenerAsyncin classorg.infinispan.notifications.impl.AbstractListenerImpl<Event<K,V>,CacheEntryListenerInvocation<K,V>>- Parameters:
listener- listener to remove, must not be null- Returns:
- CompletionStage that when complete the listener is fully removed
-
removeListenerInvocation
protected java.util.Set<CacheEntryListenerInvocation<K,V>> removeListenerInvocation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.Object listener)
-
-