Class CacheNotifierImpl.ClusteredListenerInvocation<K,V>
java.lang.Object
CacheNotifierImpl<K,V>.org.infinispan.notifications.cachelistener.CacheNotifierImpl.BaseCacheEntryListenerInvocation<K,V>
org.infinispan.notifications.cachelistener.CacheNotifierImpl.ClusteredListenerInvocation<K,V>
- All Implemented Interfaces:
CacheEntryListenerInvocation<K,
,V> ListenerInvocation<Event<K,
V>>
- Enclosing class:
CacheNotifierImpl<K,
V>
protected class CacheNotifierImpl.ClusteredListenerInvocation<K,V>
extends CacheNotifierImpl<K,V>.BaseCacheEntryListenerInvocation<K,V>
This class is to be used with cluster listener invocations only when they have included current state. Thus we
can assume all types are CacheEntryEvent, since it doesn't allow other types.
-
Field Summary
Fields inherited from class org.infinispan.notifications.cachelistener.CacheNotifierImpl.BaseCacheEntryListenerInvocation
annotation, clustered, converter, filter, filterAndConvert, filterAnnotations, identifier, invocation, observation, onlyPrimary, sync
-
Constructor Summary
ConstructorDescriptionClusteredListenerInvocation
(EncoderRegistry encoderRegistry, ListenerInvocation<Event<K, V>> invocation, QueueingSegmentListener<K, V, CacheEntryEvent<K, V>> handler, CacheEventFilter<? super K, ? super V> filter, CacheEventConverter<? super K, ? super V, ?> converter, Class<? extends Annotation> annotation, boolean onlyPrimary, UUID identifier, boolean sync, Listener.Observation observation, Set<Class<? extends Annotation>> filterAnnotations, DataConversion keyDataConversion, DataConversion valueDataConversion, boolean useStorageFormat) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletionStage
<Void> doRealInvocation
(EventWrapper<K, V, CacheEntryEvent<K, V>> wrapped) Invokes the eventtoString()
Methods inherited from class org.infinispan.notifications.cachelistener.CacheNotifierImpl.BaseCacheEntryListenerInvocation
convertValue, doRealInvocation, getAnnotation, getConverter, getFilter, getFilterAnnotations, getIdentifier, getKeyDataConversion, getObservation, getTarget, getValueDataConversion, invoke, invokeNoChecks, isClustered, isSync, shouldInvoke, shouldInvoke, useStorageFormat
-
Constructor Details
-
ClusteredListenerInvocation
public ClusteredListenerInvocation(EncoderRegistry encoderRegistry, ListenerInvocation<Event<K, V>> invocation, QueueingSegmentListener<K, V, CacheEntryEvent<K, V>> handler, CacheEventFilter<? super K, ? super V> filter, CacheEventConverter<? super K, ? super V, ?> converter, Class<? extends Annotation> annotation, boolean onlyPrimary, UUID identifier, boolean sync, Listener.Observation observation, Set<Class<? extends Annotation>> filterAnnotations, DataConversion keyDataConversion, DataConversion valueDataConversion, boolean useStorageFormat)
-
-
Method Details
-
invoke
Description copied from interface:ListenerInvocation
Invokes the event- Specified by:
invoke
in interfaceListenerInvocation<K>
- Overrides:
invoke
in classCacheNotifierImpl<K,
V>.BaseCacheEntryListenerInvocation<K, V> - Parameters:
event
-- Returns:
- null if event was ignored or already complete otherwise the event will be completely notified when the provided stage is completed
-
doRealInvocation
- Overrides:
doRealInvocation
in classCacheNotifierImpl<K,
V>.BaseCacheEntryListenerInvocation<K, V>
-
toString
- Overrides:
toString
in classCacheNotifierImpl<K,
V>.BaseCacheEntryListenerInvocation<K, V>
-