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(CacheEntryEvent, 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() |
Listener.Observation |
getObservation() |
Object |
getTarget()
The listener instance that is notified of events
|
void |
invoke(CacheEntryEvent<K,V> event,
boolean isLocalNodePrimaryOwner) |
void |
invoke(Event<K,V> event)
Invokes the event
|
void |
invokeNoChecks(CacheEntryEvent<K,V> event,
boolean skipQueue,
boolean skipConverter) |
boolean |
isClustered() |
boolean |
isSync() |
abstract void |
unregister()
Stops handling the invocation.
|
protected final CacheEntryListenerInvocation<K,V> invocation
protected DelegatingCacheEntryListenerInvocation(CacheEntryListenerInvocation<K,V> invocation)
public abstract void unregister()
public Object getTarget()
ListenerInvocationgetTarget in interface ListenerInvocation<Event<K,V>>public void invoke(Event<K,V> event)
ListenerInvocationinvoke in interface ListenerInvocation<Event<K,V>>public void invoke(CacheEntryEvent<K,V> event, boolean isLocalNodePrimaryOwner)
invoke in interface CacheEntryListenerInvocation<K,V>public void invokeNoChecks(CacheEntryEvent<K,V> event, boolean skipQueue, boolean skipConverter)
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>Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.