Interface ListenerInvocation<T>
-
- Type Parameters:
T- The type of event to listen to
- All Known Subinterfaces:
CacheEntryListenerInvocation<K,V>
- All Known Implementing Classes:
AbstractListenerImpl.ListenerInvocationImpl,CacheNotifierImpl.BaseCacheEntryListenerInvocation,CacheNotifierImpl.ClusteredListenerInvocation,DelegatingCacheEntryListenerInvocation
public interface ListenerInvocation<T>Defines simple listener invocation.- Since:
- 7.0
- Author:
- wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetTarget()The listener instance that is notified of eventsCompletionStage<Void>invoke(T event)Invokes the event
-
-
-
Method Detail
-
invoke
CompletionStage<Void> invoke(T event)
Invokes the event- Parameters:
event-- Returns:
- null if event was ignored or already complete otherwise the event will be completely notified when the provided stage is completed
-
getTarget
Object getTarget()
The listener instance that is notified of events
-
-