Interface EventHandler<E>
- Type Parameters:
E
- the generic Java type of theEvent
being handled
- All Known Subinterfaces:
EventHandler.ForObject<E>
,EventHandler.ForObjectAndMetaData<E>
,EventHandler.ForObjectAndMetaDataAndRawEvent<E>
public sealed interface EventHandler<E>
permits EventHandler.ForObject<E>, EventHandler.ForObjectAndMetaData<E>, EventHandler.ForObjectAndMetaDataAndRawEvent<E>
Sealed base interface for inherited
FunctionalInterface
variants encapsulating encapsulating Event
handling logic.
Implementations of this
will be called after the raw Event
retrieved from the event stream has
been successfully upcasted and
converted to their appropriate Java object type.This
implies that implemented FunctionalInterface
methods may be called multiple times or not at all for the same
raw event, depending on the configured EventUpcaster
s.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
FunctionalInterface
to be implemented, if only the Java event is needed for processing.static interface
FunctionalInterface
to be implemented, if the Java event and its meta-data is needed for processing.static interface
FunctionalInterface
to be implemented, if the Java event, its meta-data, and the raw event is needed for processing.