Interface EventHandler
- All Superinterfaces:
MessageHandler
- All Known Subinterfaces:
EventHandlingComponent
- All Known Implementing Classes:
AnnotatedEventHandlingComponent,DelegatingEventHandlingComponent,InterceptingEventHandlingComponent,SequenceCachingEventHandlingComponent,SequenceOverridingEventHandlingComponent,SequencingEventHandlingComponent,SimpleEventHandlingComponent,TracingEventHandlingComponent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface describing a handler of
events.- Since:
- 0.1.0
- Author:
- Allard Buijze, Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(EventMessage event, ProcessingContext context) Handles the giveneventwithin the givencontext.
-
Method Details
-
handle
@Nonnull MessageStream.Empty<Message> handle(@Nonnull EventMessage event, @Nonnull ProcessingContext context) - Parameters:
event- The event to handle.context- The context to the giveneventis handled in.- Returns:
- An
empty streamcontaining nothing.
-