K
- cache key typeV
- cache value typepublic abstract class DelegatingCacheEntryListenerInvocation<K,V> extends Object implements CacheEntryListenerInvocation<K,V>
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.Modifier and Type | Field and Description |
---|---|
protected CacheEntryListenerInvocation<K,V> |
invocation |
Modifier | Constructor and Description |
---|---|
protected |
DelegatingCacheEntryListenerInvocation(CacheEntryListenerInvocation<K,V> invocation) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
getAnnotation() |
<C> CacheEventConverter<? super K,? super V,C> |
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>> event,
boolean isLocalNodePrimaryOwner)
Invokes the event
|
CompletionStage<Void> |
invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> event,
boolean skipQueue,
boolean skipConverter,
boolean needsTransform)
Invokes the event without applying filters or converters
|
boolean |
isClustered() |
boolean |
isSync() |
abstract void |
unregister()
Stops handling the invocation.
|
boolean |
useStorageFormat() |
protected final CacheEntryListenerInvocation<K,V> invocation
protected DelegatingCacheEntryListenerInvocation(CacheEntryListenerInvocation<K,V> invocation)
public abstract void unregister()
public Object getTarget()
ListenerInvocation
getTarget
in interface ListenerInvocation<Event<K,V>>
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>> event, boolean isLocalNodePrimaryOwner)
CacheEntryListenerInvocation
invoke
in interface CacheEntryListenerInvocation<K,V>
public CompletionStage<Void> invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> event, boolean skipQueue, boolean skipConverter, boolean needsTransform)
CacheEntryListenerInvocation
invokeNoChecks
in interface CacheEntryListenerInvocation<K,V>
public boolean isClustered()
isClustered
in interface CacheEntryListenerInvocation<K,V>
public boolean isSync()
isSync
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>
public CacheEventFilter<? super K,? super V> getFilter()
getFilter
in interface CacheEntryListenerInvocation<K,V>
public <C> CacheEventConverter<? super K,? super V,C> getConverter()
getConverter
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>
Copyright © 2021 JBoss by Red Hat. All rights reserved.