Class DelegatingCacheEntryListenerInvocation<K,​V>

  • Type Parameters:
    K - cache key type
    V - cache value type
    All Implemented Interfaces:
    org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,​V>, org.infinispan.notifications.impl.ListenerInvocation<Event<K,​V>>

    public abstract class DelegatingCacheEntryListenerInvocation<K,​V>
    extends java.lang.Object
    implements org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,​V>
    A wrapper around a CacheEntryListenerInvocation that keeps a reference to the FilterIndexingServiceProvider instance that handles this invocation. All methods are delegated to the wrapped invocation except CacheEntryListenerInvocation.invoke(EventWrapper, boolean) and ListenerInvocation.invoke(Object). FilterIndexingServiceProvider implementors must extends this class and implement its abstract unregister() method.
    Since:
    7.2
    Author:
    anistor@redhat.com
    • Field Detail

      • invocation

        protected final org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,​V> invocation
    • Constructor Detail

      • DelegatingCacheEntryListenerInvocation

        protected DelegatingCacheEntryListenerInvocation​(org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,​V> invocation)
    • Method Detail

      • unregister

        public abstract void unregister()
        Stops handling the invocation. This is called when the listener is being unregistered.
      • getTarget

        public java.lang.Object getTarget()
      • invoke

        public java.util.concurrent.CompletionStage<java.lang.Void> invoke​(Event<K,​V> event)
      • invoke

        public java.util.concurrent.CompletionStage<java.lang.Void> invoke​(org.infinispan.notifications.cachelistener.EventWrapper<K,​V,​CacheEntryEvent<K,​V>> event,
                                                                           boolean isLocalNodePrimaryOwner)
      • invokeNoChecks

        public java.util.concurrent.CompletionStage<java.lang.Void> invokeNoChecks​(org.infinispan.notifications.cachelistener.EventWrapper<K,​V,​CacheEntryEvent<K,​V>> event,
                                                                                   boolean skipQueue,
                                                                                   boolean skipConverter,
                                                                                   boolean needsTransform)
      • isClustered

        public boolean isClustered()
      • isSync

        public boolean isSync()
      • getIdentifier

        public java.util.UUID getIdentifier()
      • getAnnotation

        public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
      • getFilterAnnotations

        public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilterAnnotations()
      • getKeyDataConversion

        public org.infinispan.encoding.DataConversion getKeyDataConversion()
      • getValueDataConversion

        public org.infinispan.encoding.DataConversion getValueDataConversion()
      • useStorageFormat

        public boolean useStorageFormat()