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 class
CacheNotifierImpl.BaseCacheEntryListenerInvocation<K,V>
protected class
CacheNotifierImpl.CacheInvocationBuilder
protected static class
CacheNotifierImpl.ClusteredListenerInvocation<K,V>
This class is to be used with cluster listener invocations only when they have included current state.protected class
CacheNotifierImpl.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)
void
addListener(java.lang.Object listener, KeyFilter<? super K> filter)
Adds a listener to the component.void
addListener(java.lang.Object listener, KeyFilter<? super K> filter, java.lang.ClassLoader classLoader)
Adds a listener to the component.<C> void
addListener(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.Log
getLog()
boolean
isNotificationAllowed(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 aCacheEntriesEvictedEvent
event.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 aCacheEntryActivatedEvent
event.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 aCacheEntryCreatedEvent
event.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 aCacheEntryInvalidatedEvent
event.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 aCacheEntryLoadedEvent
event.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 aCacheEntryModifiedEvent
event.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 aCacheEntryPassivatedEvent
event.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 aCacheEntryRemovedEvent
event.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 aCacheEntryVisitedEvent
event.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 void
resumeIfNeeded(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.void
start()
void
stop()
Removes all listeners from the notifierprotected javax.transaction.Transaction
suspendIfNeeded()
-
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.AbstractListenerImpl
Removes 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:CacheNotifier
Notifies all registered listeners of aCacheEntryCreatedEvent
event.- Specified by:
notifyCacheEntryCreated
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryModifiedEvent
event.- Specified by:
notifyCacheEntryModified
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryRemovedEvent
event.- Specified by:
notifyCacheEntryRemoved
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryVisitedEvent
event.- Specified by:
notifyCacheEntryVisited
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntriesEvictedEvent
event.- Specified by:
notifyCacheEntriesEvicted
in 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:CacheNotifier
Notifies all registered listeners of a CacheEntryExpired event.- Specified by:
notifyCacheEntryExpired
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryInvalidatedEvent
event.- Specified by:
notifyCacheEntryInvalidated
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryLoadedEvent
event.- Specified by:
notifyCacheEntryLoaded
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryActivatedEvent
event.- Specified by:
notifyCacheEntryActivated
in 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:CacheNotifier
Notifies all registered listeners of aCacheEntryPassivatedEvent
event.- Specified by:
notifyCacheEntryPassivated
in interfaceCacheNotifier<K,V>
-
notifyTransactionCompleted
public java.util.concurrent.CompletionStage<java.lang.Void> notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
Description copied from interface:CacheNotifier
Notifies all registered listeners of a transaction completion event.- Specified by:
notifyTransactionCompleted
in 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:CacheNotifier
Notifies all registered listeners of a transaction registration event.- Specified by:
notifyTransactionRegistered
in 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:
notifyDataRehashed
in interfaceCacheNotifier<K,V>
-
notifyTopologyChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)
- Specified by:
notifyTopologyChanged
in interfaceCacheNotifier<K,V>
-
notifyPartitionStatusChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)
- Specified by:
notifyPartitionStatusChanged
in interfaceCacheNotifier<K,V>
-
notifyPersistenceAvailabilityChanged
public java.util.concurrent.CompletionStage<java.lang.Void> notifyPersistenceAvailabilityChanged(boolean available)
- Specified by:
notifyPersistenceAvailabilityChanged
in 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:ClusterCacheNotifier
Method 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:
notifyClusterListeners
in interfaceClusterCacheNotifier<K,V>
-
retrieveClusterListenerCallablesToInstall
public java.util.Collection<ClusterListenerReplicateCallable<K,V>> retrieveClusterListenerCallablesToInstall()
Description copied from interface:ClusterCacheNotifier
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.- Specified by:
retrieveClusterListenerCallablesToInstall
in 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:Listenable
Asynchronous version ofListenable.addListener(Object)
- Specified by:
addListenerAsync
in 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:ClassLoaderAwareListenable
Asynchronous version ofClassLoaderAwareListenable.addListener(Object, ClassLoader)
- Specified by:
addListenerAsync
in 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:ClassLoaderAwareFilteringListenable
Adds a listener to the component. Typically, listeners would need to be annotated withListener
and further to that, contain methods annotated appropriately, otherwise the listener will not be registered. See theListener
annotation for more information.- Specified by:
addListener
in 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:
addListenerAsync
in 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:FilteringListenable
Adds a listener to the component. Typically, listeners would need to be annotated withListener
and further to that, contain methods annotated appropriately, otherwise the listener will not be registered. See theListener
annotation for more information.- Specified by:
addListener
in 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:FilteringListenable
Asynchronous version ofFilteringListenable.addListener(Object, CacheEventFilter, CacheEventConverter)
- Specified by:
addListenerAsync
in 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:FilteringListenable
Asynchronous version ofFilteringListenable.addFilteredListener(Object, CacheEventFilter, CacheEventConverter, Set)
- Specified by:
addFilteredListenerAsync
in 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:FilteringListenable
Asynchronous version ofFilteringListenable.addStorageFormatFilteredListener(Object, CacheEventFilter, CacheEventConverter, Set)
- Specified by:
addStorageFormatFilteredListenerAsync
in 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:
addListenerAsync
in interfaceDataConversionAwareListenable<K,V>
-
addListener
public <C> void addListener(ListenerHolder listenerHolder, KeyFilter<? super K> filter)
- Specified by:
addListener
in 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:
addFilteredListenerAsync
in interfaceDataConversionAwareListenable<K,V>
-
removeListenerAsync
public java.util.concurrent.CompletionStage<java.lang.Void> removeListenerAsync(java.lang.Object listener)
Description copied from interface:Listenable
Asynchronous version ofListenable.removeListener(Object)
- Specified by:
removeListenerAsync
in interfaceListenable
- Specified by:
removeListenerAsync
in 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)
-
-