Class TopicFilter
java.lang.Object
com.northconcepts.datapipeline.eventbus.filter.TopicFilter
- All Implemented Interfaces:
EventFilter
Matches any one of a set of topics -- topic A || topic B || topic C.
-
Field Summary
Fields inherited from interface com.northconcepts.datapipeline.eventbus.EventFilter
NULL -
Constructor Summary
ConstructorsConstructorDescriptionTopicFilter(Object... topics) Creates a filter matching events whose topic equals one of the given topics. -
Method Summary
-
Constructor Details
-
TopicFilter
Creates a filter matching events whose topic equals one of the given topics. Every event matches when no topics are given or when any given topic is null.
-
-
Method Details
-
allow
Description copied from interface:EventFilterReturns true to deliver the event to the given listener; called on the bus's delivery thread.- Specified by:
allowin interfaceEventFilter
-