public static class TopicPartitionFilter.TopicFilterAndPartitionFilter extends Object implements TopicPartitionFilter
TopicPartitionFilter.CompositeTopicPartitionFilter, TopicPartitionFilter.TopicFilterAndPartitionFilter| Constructor and Description |
|---|
TopicFilterAndPartitionFilter(TopicFilter.IncludeList topicFilter,
PartitionFilter partitionFilter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTopicAllowed(String topic)
Used to filter topics based on a certain criteria, for example, a set of topic names or a regular expression.
|
boolean |
isTopicPartitionAllowed(org.apache.kafka.common.TopicPartition partition)
Used to filter topic-partitions based on a certain criteria, for example, a topic pattern and a set of partition ids.
|
public TopicFilterAndPartitionFilter(TopicFilter.IncludeList topicFilter, PartitionFilter partitionFilter)
public boolean isTopicAllowed(String topic)
TopicPartitionFilterisTopicAllowed in interface TopicPartitionFilterpublic boolean isTopicPartitionAllowed(org.apache.kafka.common.TopicPartition partition)
TopicPartitionFilterisTopicPartitionAllowed in interface TopicPartitionFilter