public class HierachyTopicFilter extends Object implements TopicFilter
TopicFilter
which validates the topics hierarchical. This means, that the
listener filter will be checked as prefixed substring against
the event topic.
eventTopic = "foo.bar" and listenerTopic = "foo"eventTopic = "foo" and listenerTopic = "foo.bar"eventTopic = "foo.bar" and listenerTopic = "foo.not"| Constructor and Description |
|---|
HierachyTopicFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validTopic(String eventTopic,
String listenerTopic)
Validates the given event topic against the listener topic.
|
public boolean validTopic(String eventTopic, String listenerTopic)
TopicFiltervalidTopic in interface TopicFiltereventTopic - the topic provided by while publishing an event, never nulllistenerTopic - the topic of the listener method, never nullCopyright © 2017. All rights reserved.