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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Return the unique identifier for this observer.Set<Annotation>getObservedQualifiers()Return the qualifiers for the observer that wil be used to further qualify which events are received.booleanisAsync()Returntrueif this observer should be async.voidnotify(E event)Process an event.
-
-
-
Method Detail
-
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
void notify(E event)
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
-
-