Class 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>
    • Field Summary

      • Fields inherited from class org.infinispan.notifications.impl.AbstractListenerImpl

        asyncProcessor, listenersMap
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CompletionStage<Void> addListenerAsync​(Object listener)  
      protected boolean clusterListenerOnPrimaryOnly()  
      • 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 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
    • Constructor Detail

      • AnchoredCacheNotifier

        public AnchoredCacheNotifier()
    • Method Detail

      • clusterListenerOnPrimaryOnly

        protected boolean clusterListenerOnPrimaryOnly()
        Overrides:
        clusterListenerOnPrimaryOnly in class org.infinispan.notifications.cachelistener.CacheNotifierImpl<K,​V>
      • addListenerAsync

        public CompletionStage<Void> addListenerAsync​(Object listener)
        Specified by:
        addListenerAsync in interface org.infinispan.notifications.Listenable
        Overrides:
        addListenerAsync in class org.infinispan.notifications.cachelistener.CacheNotifierImpl<K,​V>