Interface EventHandler<E extends Event,C extends BaseEventHandlerType>


public interface EventHandler<E extends Event,C extends BaseEventHandlerType>
Handles a single notification event.
  • 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

      @NotNull @NotNull Class<E> getEventType()
      Returns type of events this handler is capable of handling.
    • getEventHandlerConfigurationType

      @NotNull @NotNull Class<? extends C> getEventHandlerConfigurationType()
      Returns type of configuration objects for this event handler. The handler is selected based on exact match of this type.