Package org.apache.pulsar.broker.service
Class TopicListService.TopicListWatcher
java.lang.Object
org.apache.pulsar.broker.service.TopicListService.TopicListWatcher
- All Implemented Interfaces:
BiConsumer<String,org.apache.pulsar.metadata.api.NotificationType>
- Enclosing class:
- TopicListService
public static class TopicListService.TopicListWatcher
extends Object
implements BiConsumer<String,org.apache.pulsar.metadata.api.NotificationType>
-
Constructor Summary
ConstructorsConstructorDescriptionTopicListWatcher(TopicListService topicListService, long id, com.google.re2j.Pattern topicsPattern, List<String> topics) -
Method Summary
Modifier and TypeMethodDescriptionvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
TopicListWatcher
public TopicListWatcher(TopicListService topicListService, long id, com.google.re2j.Pattern topicsPattern, List<String> topics) - Parameters:
topicsPattern- The regexp for the topic name(not contains partition suffix).
-
-
Method Details
-
getMatchingTopics
-
accept
public void accept(String topicName, org.apache.pulsar.metadata.api.NotificationType notificationType) - Specified by:
acceptin interfaceBiConsumer<String,org.apache.pulsar.metadata.api.NotificationType> - Parameters:
topicName- topic name which contains partition suffix.
-