T - the event typepublic interface Event<T>
| Modifier and Type | Method and Description |
|---|---|
void |
fire(T event) |
<U extends T> |
fireAsync(U asyncEvent)
Fires the given event asynchronous and notifies all
ObservesAsync observers. |
<U extends T> |
fireAsync(U asyncEvent,
NotificationOptions notificationOptions)
Fires the given event asynchronous and notifies all
ObservesAsync observers. |
Event<T> |
select(Annotation... qualifiers) |
<U extends T> |
select(Class<U> subtype,
Annotation... qualifiers) |
<U extends T> |
select(TypeLiteral<U> subtype,
Annotation... qualifiers) |
void fire(T event)
<U extends T> CompletionStage<U> fireAsync(U asyncEvent)
ObservesAsync observers.U - the type of the resultasyncEvent - event to fire asyncCompletionStage with type U<U extends T> CompletionStage<U> fireAsync(U asyncEvent, NotificationOptions notificationOptions)
ObservesAsync observers.U - type of the resultasyncEvent - event to fire asyncnotificationOptions - CompletionStage with type UEvent<T> select(Annotation... qualifiers)
<U extends T> Event<U> select(Class<U> subtype, Annotation... qualifiers)
<U extends T> Event<U> select(TypeLiteral<U> subtype, Annotation... qualifiers)
Copyright © 2025. All rights reserved.