public interface ListenerInvoker
Note: Implementations MUST provide correct implementations of the
Object.equals(Object) and Object.hashCode() method.
| Modifier and Type | Method and Description |
|---|---|
default int |
getOrder()
See
EventPublisher.publish(Object) for details on processing event order. |
default Optional<String> |
getScope() |
Set<Class<?>> |
getSupportedEventTypes()
The types of events supported by this invoker.
|
void |
invoke(Object event)
Invokes the underlying listener for the given event.
|
boolean |
supportAsynchronousEvents()
Whether or not the underlying listener can handle asynchronous event.
|
Set<Class<?>> getSupportedEventTypes()
invoke(Object) can be safely called with any object
that is an instance of at least one of those types.void invoke(Object event)
event - the event to tell the listener about.IllegalArgumentException - if the event is not an instance of any of the types returned by
getSupportedEventTypes()boolean supportAsynchronousEvents()
true if the underlying listener can handle asynchronous events, false otherwisedefault int getOrder()
EventPublisher.publish(Object) for details on processing event order.Copyright © 2006–2022 Atlassian. All rights reserved.