Package org.infinispan.anchored.impl
Class AnchoredCacheNotifier<K,V>
- java.lang.Object
-
- org.infinispan.notifications.impl.AbstractListenerImpl<org.infinispan.notifications.cachelistener.event.Event<K,V>,org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,V>>
-
- org.infinispan.notifications.cachelistener.CacheNotifierImpl<K,V>
-
- org.infinispan.anchored.impl.AnchoredCacheNotifier<K,V>
-
- All Implemented Interfaces:
org.infinispan.notifications.cachelistener.CacheNotifier<K,V>,org.infinispan.notifications.cachelistener.cluster.ClusterCacheNotifier<K,V>,org.infinispan.notifications.ClassLoaderAwareFilteringListenable<K,V>,org.infinispan.notifications.ClassLoaderAwareListenable,org.infinispan.notifications.DataConversionAwareListenable<K,V>,org.infinispan.notifications.FilteringListenable<K,V>,org.infinispan.notifications.Listenable
public class AnchoredCacheNotifier<K,V> extends org.infinispan.notifications.cachelistener.CacheNotifierImpl<K,V>Adjust notifications for anchored keys caches.- Invoke clustered listeners from the primary owner
- Skip notifications for entries that only store a location.
- Since:
- 11
- Author:
- Dan Berindei
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.infinispan.notifications.cachelistener.CacheNotifierImpl
org.infinispan.notifications.cachelistener.CacheNotifierImpl.BaseCacheEntryListenerInvocation<K extends Object,V extends Object>, org.infinispan.notifications.cachelistener.CacheNotifierImpl.CacheInvocationBuilder, org.infinispan.notifications.cachelistener.CacheNotifierImpl.ClusteredListenerInvocation<K extends Object,V extends Object>, org.infinispan.notifications.cachelistener.CacheNotifierImpl.DelegatingCacheInvocationBuilder
-
Nested classes/interfaces inherited from class org.infinispan.notifications.impl.AbstractListenerImpl
org.infinispan.notifications.impl.AbstractListenerImpl.AbstractInvocationBuilder, org.infinispan.notifications.impl.AbstractListenerImpl.ListenerInvocationImpl<A extends Object>
-
-
Constructor Summary
Constructors Constructor Description AnchoredCacheNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>addListenerAsync(Object listener)protected booleanclusterListenerOnPrimaryOnly()-
Methods inherited from class org.infinispan.notifications.cachelistener.CacheNotifierImpl
addFilteredListenerAsync, addFilteredListenerAsync, addListenerAsync, addListenerAsync, addListenerAsync, addListenerAsync, addStorageFormatFilteredListenerAsync, getAllowedMethodAnnotations, getListenerCollectionForAnnotation, getLog, isNotificationAllowed, notifyCacheEntriesEvicted, notifyCacheEntryActivated, notifyCacheEntryCreated, notifyCacheEntryExpired, notifyCacheEntryInvalidated, notifyCacheEntryLoaded, notifyCacheEntryModified, notifyCacheEntryPassivated, notifyCacheEntryRemoved, notifyCacheEntryVisited, notifyClusterListeners, notifyDataRehashed, notifyPartitionStatusChanged, notifyPersistenceAvailabilityChanged, notifyTopologyChanged, notifyTransactionCompleted, notifyTransactionRegistered, removeListenerAsync, removeListenerInvocation, resumeIfNeeded, retrieveClusterListenerCallablesToInstall, start, stop, 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
-
-
-
-
Method Detail
-
clusterListenerOnPrimaryOnly
protected boolean clusterListenerOnPrimaryOnly()
-
addListenerAsync
public CompletionStage<Void> addListenerAsync(Object listener)
-
-