Interface EventFilter

All Known Implementing Classes:
TopicEventFilter, TopicGlobEventFilter, TopicPrefixEventFilter

@NonNullByDefault public interface EventFilter
An EventFilter can be provided by an EventSubscriber in order to receive specific Events by an EventPublisher if the filter applies.
Author:
Stefan Bußweiler - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(Event event)
    Apply the filter on an event.
  • Method Details

    • apply

      boolean apply(Event event)
      Apply the filter on an event.

      This method is called for each subscribed Event of an EventSubscriber. If the filter applies, the event will be dispatched to the EventSubscriber.receive(Event) method.

      Parameters:
      event - the event (not null)
      Returns:
      true if the filter criterion applies