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,V>, org.infinispan.notifications.cachelistener.CacheNotifierImpl.CacheInvocationBuilder, org.infinispan.notifications.cachelistener.CacheNotifierImpl.ClusteredListenerInvocation<K,V>, 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>
  • Field Summary

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

    asyncProcessor, listenersMap
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
     

    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, handleException, hasListener, hasListeners, invokeListeners, 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

    getListeners, hasListener, hasListeners

    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, removeListener
  • Constructor Details

    • AnchoredCacheNotifier

      public AnchoredCacheNotifier()
  • Method Details

    • 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>