K - cache key typeV - cache value typepublic abstract class DelegatingCacheEntryListenerInvocation<K,V> extends java.lang.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 |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotation() |
<C> CacheEventConverter<? super K,? super V,C> |
getConverter() |
CacheEventFilter<? super K,? super V> |
getFilter() |
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getFilterAnnotations() |
java.util.UUID |
getIdentifier() |
DataConversion |
getKeyDataConversion() |
Listener.Observation |
getObservation() |
java.lang.Object |
getTarget()
The listener instance that is notified of events
|
DataConversion |
getValueDataConversion() |
void |
invoke(Event<K,V> event)
Invokes the event
|
void |
invoke(EventWrapper<K,V,CacheEntryEvent<K,V>> event,
boolean isLocalNodePrimaryOwner) |
void |
invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> event,
boolean skipQueue,
boolean skipConverter,
boolean needsTransform) |
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 java.lang.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(EventWrapper<K,V,CacheEntryEvent<K,V>> event, boolean isLocalNodePrimaryOwner)
invoke in interface CacheEntryListenerInvocation<K,V>public void invokeNoChecks(EventWrapper<K,V,CacheEntryEvent<K,V>> event, boolean skipQueue, boolean skipConverter, boolean needsTransform)
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 java.util.UUID getIdentifier()
getIdentifier in interface CacheEntryListenerInvocation<K,V>public Listener.Observation getObservation()
getObservation in interface CacheEntryListenerInvocation<K,V>public java.lang.Class<? extends java.lang.annotation.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 java.util.Set<java.lang.Class<? extends java.lang.annotation.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>