public class NonPersistentTopicsImpl extends BaseResource implements NonPersistentTopics
auth, readTimeoutMs| Constructor and Description |
|---|
NonPersistentTopicsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
createPartitionedTopic(String topic,
int numPartitions) |
CompletableFuture<Void> |
createPartitionedTopicAsync(String topic,
int numPartitions) |
org.apache.pulsar.common.policies.data.PersistentTopicInternalStats |
getInternalStats(String topic) |
CompletableFuture<org.apache.pulsar.common.policies.data.PersistentTopicInternalStats> |
getInternalStatsAsync(String topic) |
List<String> |
getList(String namespace) |
CompletableFuture<List<String>> |
getListAsync(String namespace) |
List<String> |
getListInBundle(String namespace,
String bundleRange) |
CompletableFuture<List<String>> |
getListInBundleAsync(String namespace,
String bundleRange) |
org.apache.pulsar.common.partition.PartitionedTopicMetadata |
getPartitionedTopicMetadata(String topic) |
CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> |
getPartitionedTopicMetadataAsync(String topic) |
org.apache.pulsar.common.policies.data.NonPersistentTopicStats |
getStats(String topic) |
CompletableFuture<org.apache.pulsar.common.policies.data.NonPersistentTopicStats> |
getStatsAsync(String topic) |
void |
unload(String topic) |
CompletableFuture<Void> |
unloadAsync(String topic) |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, request, requestAsyncpublic NonPersistentTopicsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public void createPartitionedTopic(String topic, int numPartitions) throws PulsarAdminException
createPartitionedTopic in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<Void> createPartitionedTopicAsync(String topic, int numPartitions)
createPartitionedTopicAsync in interface NonPersistentTopicspublic org.apache.pulsar.common.partition.PartitionedTopicMetadata getPartitionedTopicMetadata(String topic) throws PulsarAdminException
getPartitionedTopicMetadata in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> getPartitionedTopicMetadataAsync(String topic)
getPartitionedTopicMetadataAsync in interface NonPersistentTopicspublic org.apache.pulsar.common.policies.data.NonPersistentTopicStats getStats(String topic) throws PulsarAdminException
getStats in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.NonPersistentTopicStats> getStatsAsync(String topic)
getStatsAsync in interface NonPersistentTopicspublic org.apache.pulsar.common.policies.data.PersistentTopicInternalStats getInternalStats(String topic) throws PulsarAdminException
getInternalStats in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.PersistentTopicInternalStats> getInternalStatsAsync(String topic)
getInternalStatsAsync in interface NonPersistentTopicspublic void unload(String topic) throws PulsarAdminException
unload in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<Void> unloadAsync(String topic)
unloadAsync in interface NonPersistentTopicspublic List<String> getListInBundle(String namespace, String bundleRange) throws PulsarAdminException
getListInBundle in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getListInBundleAsync(String namespace, String bundleRange)
getListInBundleAsync in interface NonPersistentTopicspublic List<String> getList(String namespace) throws PulsarAdminException
getList in interface NonPersistentTopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getListAsync(String namespace)
getListAsync in interface NonPersistentTopicsCopyright © 2017–2021 Apache Software Foundation. All rights reserved.