T - the event typepublic interface ExperimentalEvent<T> extends Event<T>
Event.| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
fireAsync(U event)
Fires an event with the specified qualifiers and notifies observers asynchronously.
|
<U extends T> |
fireAsync(U event,
Executor executor)
Same as
fireAsync(Object) but allows an executor, which is used for asynchronous event delivery, to be specified. |
ExperimentalEvent<T> |
select(Annotation... qualifiers)
Obtains a child Event for the given additional required qualifiers.
|
<U extends T> |
select(Class<U> subtype,
Annotation... qualifiers)
Obtains a child Event for the given required type and additional required qualifiers.
|
<U extends T> |
select(TypeLiteral<U> subtype,
Annotation... qualifiers)
Obtains a child Event for the given required type and additional required qualifiers.
|
<U extends T> CompletionStage<U> fireAsync(U event)
Fires an event with the specified qualifiers and notifies observers asynchronously.
Observers bound to a transaction phase are registered to be executed in the corresponding transaction phase.
Observers with TransactionPhase.IN_PROGRESS are notified in a configured thread pool. The ordering of
observers is preserved. The message may be mutable and is guaranteed to be safely propagated between observers.
The returned CompletionStage allows actions, which execute upon termination of this asynchronous dispatch, to be registered.
U - the event typeevent - the event objectIllegalArgumentException - if the runtime type of the event object contains a type variableCompletionStage<U extends T> CompletionStage<U> fireAsync(U event, Executor executor)
fireAsync(Object) but allows an executor, which is used for asynchronous event delivery, to be specified.U - the event typeevent - the event objectexecutor - the executor to be used for asynchronous event deliveryIllegalArgumentException - if the runtime type of the event object contains a type variableExperimentalEvent<T> select(Annotation... qualifiers)
EventObtains a child Event for the given additional required qualifiers.
<U extends T> ExperimentalEvent<U> select(Class<U> subtype, Annotation... qualifiers)
EventObtains a child Event for the given required type and additional required qualifiers.
<U extends T> ExperimentalEvent<U> select(TypeLiteral<U> subtype, Annotation... qualifiers)
EventObtains a child Event for the given required type and additional required qualifiers.
select in interface Event<T>U - the specified typesubtype - a TypeLiteral representing the specified typequalifiers - the additional specified qualifiersCopyright © 2015. All Rights Reserved.