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 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 Object getTarget()
      • invokeNoChecks

        public CompletionStage<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 UUID getIdentifier()
      • getKeyDataConversion

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

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

        public boolean useStorageFormat()