Package org.apache.pulsar.broker.service
Class TopicListService
java.lang.Object
org.apache.pulsar.broker.service.TopicListService
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTopicListService(PulsarService pulsar, ServerCnx connection, boolean enableSubscriptionPatternEvaluation, int maxSubscriptionPatternLength) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTopicListWatcher(Long watcherId) voidhandleWatchTopicList(org.apache.pulsar.common.naming.NamespaceName namespaceName, long watcherId, long requestId, com.google.re2j.Pattern topicsPattern, String topicsHash, Semaphore lookupSemaphore) voidhandleWatchTopicListClose(org.apache.pulsar.common.api.proto.CommandWatchTopicListClose commandWatchTopicListClose) voidvoidinitializeTopicsListWatcher(CompletableFuture<TopicListService.TopicListWatcher> watcherFuture, org.apache.pulsar.common.naming.NamespaceName namespace, long watcherId, com.google.re2j.Pattern topicsPattern) voidsendTopicListUpdate(long watcherId, String topicsHash, List<String> deletedTopics, List<String> newTopics)
-
Constructor Details
-
TopicListService
public TopicListService(PulsarService pulsar, ServerCnx connection, boolean enableSubscriptionPatternEvaluation, int maxSubscriptionPatternLength)
-
-
Method Details
-
inactivate
public void inactivate() -
handleWatchTopicList
public void handleWatchTopicList(org.apache.pulsar.common.naming.NamespaceName namespaceName, long watcherId, long requestId, com.google.re2j.Pattern topicsPattern, String topicsHash, Semaphore lookupSemaphore) - Parameters:
topicsPattern- The regexp for the topic name(not contains partition suffix).
-
initializeTopicsListWatcher
public void initializeTopicsListWatcher(CompletableFuture<TopicListService.TopicListWatcher> watcherFuture, org.apache.pulsar.common.naming.NamespaceName namespace, long watcherId, com.google.re2j.Pattern topicsPattern) - Parameters:
topicsPattern- The regexp for the topic name(not contains partition suffix).
-
handleWatchTopicListClose
public void handleWatchTopicListClose(org.apache.pulsar.common.api.proto.CommandWatchTopicListClose commandWatchTopicListClose) -
deleteTopicListWatcher
-
sendTopicListUpdate
public void sendTopicListUpdate(long watcherId, String topicsHash, List<String> deletedTopics, List<String> newTopics) - Parameters:
deletedTopics- topic names deleted(contains the partition suffix).newTopics- topics names added(contains the partition suffix).
-