Interface EventHandler<E extends Event,C extends BaseEventHandlerType>
public interface EventHandler<E extends Event,C extends BaseEventHandlerType>
Handles a single notification event.
-
Method Summary
Modifier and TypeMethodDescriptionReturns type of configuration objects for this event handler.Returns type of events this handler is capable of handling.boolean
processEvent
(@NotNull ConfigurationItem<? extends C> handlerConfig, @NotNull EventProcessingContext<? extends E> ctx, @NotNull OperationResult result) Processes event (embedded in the context) by the handler, represented by this object and provided configuration.
-
Method Details
-
processEvent
boolean processEvent(@NotNull @NotNull ConfigurationItem<? extends C> handlerConfig, @NotNull @NotNull EventProcessingContext<? extends E> ctx, @NotNull @NotNull OperationResult result) throws SchemaException Processes event (embedded in the context) by the handler, represented by this object and provided configuration. Returns true if we should continue with processing of this event, false otherwise.- Throws:
SchemaException
-
getEventType
Returns type of events this handler is capable of handling. -
getEventHandlerConfigurationType
Returns type of configuration objects for this event handler. The handler is selected based on exact match of this type.
-