Package org.openhab.core.events
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
-
Method Details
-
apply
Apply the filter on an event.This method is called for each subscribed
Eventof anEventSubscriber. If the filter applies, the event will be dispatched to theEventSubscriber.receive(Event)method.- Parameters:
event- the event (not null)- Returns:
- true if the filter criterion applies
-