Class TopicResources
java.lang.Object
org.apache.pulsar.broker.resources.TopicResources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearDomainPersistence(org.apache.pulsar.common.naming.NamespaceName ns) clearNamespacePersistence(org.apache.pulsar.common.naming.NamespaceName ns) clearTenantPersistence(String tenant) createPersistentTopicAsync(org.apache.pulsar.common.naming.TopicName topic) voidgetExistingPartitions(org.apache.pulsar.common.naming.NamespaceName ns, org.apache.pulsar.common.naming.TopicDomain domain) getExistingPartitions(org.apache.pulsar.common.naming.TopicName topic) listPersistentTopicsAsync(org.apache.pulsar.common.naming.NamespaceName ns) List persistent topics names under a namespace, the topic name contains the partition suffix.persistentTopicExists(org.apache.pulsar.common.naming.TopicName topic) voidregisterPersistentTopicListener(org.apache.pulsar.common.naming.NamespaceName namespaceName, BiConsumer<String, NotificationType> listener)
-
Constructor Details
-
TopicResources
-
-
Method Details
-
listPersistentTopicsAsync
public CompletableFuture<List<String>> listPersistentTopicsAsync(org.apache.pulsar.common.naming.NamespaceName ns) List persistent topics names under a namespace, the topic name contains the partition suffix. -
getExistingPartitions
public CompletableFuture<List<String>> getExistingPartitions(org.apache.pulsar.common.naming.TopicName topic) -
getExistingPartitions
public CompletableFuture<List<String>> getExistingPartitions(org.apache.pulsar.common.naming.NamespaceName ns, org.apache.pulsar.common.naming.TopicDomain domain) -
createPersistentTopicAsync
public CompletableFuture<Void> createPersistentTopicAsync(org.apache.pulsar.common.naming.TopicName topic) -
persistentTopicExists
public CompletableFuture<Boolean> persistentTopicExists(org.apache.pulsar.common.naming.TopicName topic) -
clearNamespacePersistence
public CompletableFuture<Void> clearNamespacePersistence(org.apache.pulsar.common.naming.NamespaceName ns) -
clearDomainPersistence
public CompletableFuture<Void> clearDomainPersistence(org.apache.pulsar.common.naming.NamespaceName ns) -
clearTenantPersistence
-
registerPersistentTopicListener
public void registerPersistentTopicListener(org.apache.pulsar.common.naming.NamespaceName namespaceName, BiConsumer<String, NotificationType> listener) -
deregisterPersistentTopicListener
-