Package dev.agenor.runtime.filter
Class TopicFilter
java.lang.Object
dev.agenor.runtime.filter.TopicFilter
- All Implemented Interfaces:
MessageFilter,Predicate<Message>
Filter messages by topic patterns
-
Method Summary
Modifier and TypeMethodDescriptionstatic TopicFilterMatch topic suffixstatic TopicFilterMatch exact topicstatic TopicFilterMatch topic with regexstatic TopicFilterstartsWith(String prefix) Match topic prefixbooleanTest if the message matches this filterstatic TopicFilterMatch topic with wildcard (* = any characters)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.agenor.core.filter.MessageFilter
and, negate, or
-
Method Details
-
test
Description copied from interface:MessageFilterTest if the message matches this filter- Specified by:
testin interfaceMessageFilter- Specified by:
testin interfacePredicate<Message>- Parameters:
message- the message to test- Returns:
- true if the message matches the filter criteria
-
exact
Match exact topic -
startsWith
Match topic prefix -
endsWith
Match topic suffix -
wildcard
Match topic with wildcard (* = any characters) -
regex
Match topic with regex
-