Package com.oracle.coherence.cdi.events
Interface EventObserverSupport.EventObserver<E extends Event>
- Type Parameters:
E- event type
- All Known Implementing Classes:
CdiEventObserver
- Enclosing class:
EventObserverSupport
public static interface EventObserverSupport.EventObserver<E extends Event>
An observer of a specific event type.
-
Method Details
-
getId
String getId()Return the unique identifier for this observer.This value will be used as the identifier when registering an
EventInterceptor.- Returns:
- the unique identifier for this observer
-
notify
Process an event.- Parameters:
event- the event
-
isAsync
boolean isAsync()Returntrueif this observer should be async.- Returns:
trueif this observer should be async
-
getObservedQualifiers
Set<Annotation> getObservedQualifiers()Return the qualifiers for the observer that wil be used to further qualify which events are received.- Returns:
- the qualifiers for the observer
-