protected static class CacheNotifierImpl.BaseCacheEntryListenerInvocation<K,V> extends Object implements CacheEntryListenerInvocation<K,V>
Modifier and Type | Field and Description |
---|---|
protected Class<? extends Annotation> |
annotation |
protected boolean |
clustered |
protected CacheEventConverter<? super K,? super V,?> |
converter |
protected CacheEventFilter<? super K,? super V> |
filter |
protected boolean |
filterAndConvert |
protected Set<Class<? extends Annotation>> |
filterAnnotations |
protected UUID |
identifier |
protected ListenerInvocation<Event<K,V>> |
invocation |
protected Listener.Observation |
observation |
protected boolean |
onlyPrimary |
protected boolean |
sync |
Modifier | Constructor and Description |
---|---|
protected |
BaseCacheEntryListenerInvocation(EncoderRegistry encoderRegistry,
ListenerInvocation<Event<K,V>> invocation,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,?> converter,
Class<? extends Annotation> annotation,
boolean onlyPrimary,
boolean clustered,
UUID identifier,
boolean sync,
Listener.Observation observation,
Set<Class<? extends Annotation>> filterAnnotations,
DataConversion keyDataConversion,
DataConversion valueDataConversion,
boolean useStorageFormat) |
Modifier and Type | Method and Description |
---|---|
protected CacheEntryEvent<K,V> |
convertValue(CacheEventConverter<? super K,? super V,?> converter,
CacheEntryEvent<K,V> event) |
protected CompletionStage<Void> |
doRealInvocation(Event<K,V> event) |
protected CompletionStage<Void> |
doRealInvocation(EventWrapper<K,V,CacheEntryEvent<K,V>> event) |
Class<? extends Annotation> |
getAnnotation() |
CacheEventConverter<? super K,? super V,?> |
getConverter() |
CacheEventFilter<? super K,? super V> |
getFilter() |
Set<Class<? extends Annotation>> |
getFilterAnnotations() |
UUID |
getIdentifier() |
DataConversion |
getKeyDataConversion() |
Listener.Observation |
getObservation() |
Object |
getTarget()
The listener instance that is notified of events
|
DataConversion |
getValueDataConversion() |
CompletionStage<Void> |
invoke(Event<K,V> event)
Invokes the event
|
CompletionStage<Void> |
invoke(EventWrapper<K,V,CacheEntryEvent<K,V>> wrapped,
boolean isLocalNodePrimaryOwner)
This is the entry point for local listeners firing events
|
CompletionStage<Void> |
invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> wrapped,
boolean skipQueue,
boolean skipConverter,
boolean needsTransform)
This is the entry point for remote listener events being fired
|
boolean |
isClustered() |
boolean |
isSync() |
protected CacheEntryEvent<K,V> |
shouldInvoke(CacheEntryEvent<K,V> event,
boolean isLocalNodePrimaryOwner) |
protected boolean |
shouldInvoke(Event<K,V> event) |
String |
toString() |
boolean |
useStorageFormat() |
protected final ListenerInvocation<Event<K,V>> invocation
protected final CacheEventFilter<? super K,? super V> filter
protected final CacheEventConverter<? super K,? super V,?> converter
protected final boolean onlyPrimary
protected final boolean clustered
protected final UUID identifier
protected final Class<? extends Annotation> annotation
protected final boolean sync
protected final boolean filterAndConvert
protected final Listener.Observation observation
protected final Set<Class<? extends Annotation>> filterAnnotations
protected BaseCacheEntryListenerInvocation(EncoderRegistry encoderRegistry, ListenerInvocation<Event<K,V>> invocation, CacheEventFilter<? super K,? super V> filter, CacheEventConverter<? super K,? super V,?> converter, Class<? extends Annotation> annotation, boolean onlyPrimary, boolean clustered, UUID identifier, boolean sync, Listener.Observation observation, Set<Class<? extends Annotation>> filterAnnotations, DataConversion keyDataConversion, DataConversion valueDataConversion, boolean useStorageFormat)
public CompletionStage<Void> invoke(Event<K,V> event)
ListenerInvocation
invoke
in interface ListenerInvocation<Event<K,V>>
public CompletionStage<Void> invoke(EventWrapper<K,V,CacheEntryEvent<K,V>> wrapped, boolean isLocalNodePrimaryOwner)
invoke
in interface CacheEntryListenerInvocation<K,V>
wrapped
- isLocalNodePrimaryOwner
- public CompletionStage<Void> invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> wrapped, boolean skipQueue, boolean skipConverter, boolean needsTransform)
invokeNoChecks
in interface CacheEntryListenerInvocation<K,V>
wrapped
- skipQueue
- protected CompletionStage<Void> doRealInvocation(EventWrapper<K,V,CacheEntryEvent<K,V>> event)
protected CompletionStage<Void> doRealInvocation(Event<K,V> event)
protected CacheEntryEvent<K,V> shouldInvoke(CacheEntryEvent<K,V> event, boolean isLocalNodePrimaryOwner)
public Object getTarget()
ListenerInvocation
getTarget
in interface ListenerInvocation<Event<K,V>>
public CacheEventFilter<? super K,? super V> getFilter()
getFilter
in interface CacheEntryListenerInvocation<K,V>
public Set<Class<? extends Annotation>> getFilterAnnotations()
getFilterAnnotations
in interface CacheEntryListenerInvocation<K,V>
public DataConversion getKeyDataConversion()
getKeyDataConversion
in interface CacheEntryListenerInvocation<K,V>
public DataConversion getValueDataConversion()
getValueDataConversion
in interface CacheEntryListenerInvocation<K,V>
public boolean useStorageFormat()
useStorageFormat
in interface CacheEntryListenerInvocation<K,V>
public CacheEventConverter<? super K,? super V,?> getConverter()
getConverter
in interface CacheEntryListenerInvocation<K,V>
public boolean isClustered()
isClustered
in interface CacheEntryListenerInvocation<K,V>
public UUID getIdentifier()
getIdentifier
in interface CacheEntryListenerInvocation<K,V>
public Listener.Observation getObservation()
getObservation
in interface CacheEntryListenerInvocation<K,V>
public Class<? extends Annotation> getAnnotation()
getAnnotation
in interface CacheEntryListenerInvocation<K,V>
protected CacheEntryEvent<K,V> convertValue(CacheEventConverter<? super K,? super V,?> converter, CacheEntryEvent<K,V> event)
public boolean isSync()
isSync
in interface CacheEntryListenerInvocation<K,V>
Copyright © 2021 JBoss by Red Hat. All rights reserved.