public final class PatternFilterMessageConsumer extends Object implements MessageConsumer
| Constructor and Description |
|---|
PatternFilterMessageConsumer(List<Pattern> patterns,
boolean shouldBePresent,
MessageConsumer nextMessageConsumer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume(long index,
String message)
Consume the message
|
public PatternFilterMessageConsumer(List<Pattern> patterns, boolean shouldBePresent, MessageConsumer nextMessageConsumer)
patterns - The list of patterns to match againstshouldBePresent - true if we require all the patterns to match, false if we require none of the patterns to matchnextMessageConsumer - The next message consumer in line, messages that pass the filter will be passed to itpublic boolean consume(long index,
String message)
MessageConsumerconsume in interface MessageConsumerindex - the index of the messagemessage - the message as a stringCopyright © 2023. All rights reserved.