Class AbstractListenerImpl.ListenerInvocationImpl<A>
java.lang.Object
org.infinispan.notifications.impl.AbstractListenerImpl.ListenerInvocationImpl<A>
- All Implemented Interfaces:
ListenerInvocation<A>
- Enclosing class:
AbstractListenerImpl<T,
L extends ListenerInvocation<T>>
protected class AbstractListenerImpl.ListenerInvocationImpl<A>
extends Object
implements ListenerInvocation<A>
Class that encapsulates a valid invocation for a given registered listener - containing a reference to the method
to be invoked as well as the target object.
-
Constructor Summary
ConstructorDescriptionListenerInvocationImpl
(Object target, Method method, boolean sync, ClassLoader classLoader, Subject subject) -
Method Summary
-
Constructor Details
-
ListenerInvocationImpl
public ListenerInvocationImpl(Object target, Method method, boolean sync, ClassLoader classLoader, Subject subject)
-
-
Method Details
-
invoke
Description copied from interface:ListenerInvocation
Invokes the event- Specified by:
invoke
in interfaceListenerInvocation<A>
- 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
Description copied from interface:ListenerInvocation
The listener instance that is notified of events- Specified by:
getTarget
in interfaceListenerInvocation<A>
-