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 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

      public List<String> getMatchingTopics()
    • accept

      public void accept(String topicName, org.apache.pulsar.metadata.api.NotificationType notificationType)
      Specified by:
      accept in interface BiConsumer<String,org.apache.pulsar.metadata.api.NotificationType>
      Parameters:
      topicName - topic name which contains partition suffix.