Class TopicsImpl
java.lang.Object
org.apache.pulsar.client.admin.internal.BaseResource
org.apache.pulsar.client.admin.internal.TopicsImpl
- All Implemented Interfaces:
Topics
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.client.admin.Topics
Topics.QueryParam -
Field Summary
FieldsFields inherited from class org.apache.pulsar.client.admin.internal.BaseResource
auth, readTimeoutMs -
Constructor Summary
ConstructorsConstructorDescriptionTopicsImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionanalyzeSubscriptionBacklog(String topic, String subscriptionName, Optional<org.apache.pulsar.client.api.MessageId> startPosition) analyzeSubscriptionBacklogAsync(String topic, String subscriptionName, Optional<org.apache.pulsar.client.api.MessageId> startPosition) compactionStatus(String topic) compactionStatusAsync(String topic) voidcreateMissedPartitions(String topic) voidcreateNonPartitionedTopic(String topic, Map<String, String> metadata) createNonPartitionedTopicAsync(String topic, Map<String, String> properties) voidcreatePartitionedTopic(String topic, int numPartitions, Map<String, String> metadata) createPartitionedTopicAsync(String topic, int numPartitions, boolean createLocalTopicOnly, Map<String, String> properties) createPartitionedTopicAsync(String topic, int numPartitions, Map<String, String> properties) voidvoidcreateSubscription(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean replicated, Map<String, String> properties) createSubscriptionAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean replicated, Map<String, String> properties) voidvoiddeleteAsync(String topic) deleteAsync(String topic, boolean force, boolean deleteSchema) voiddeletePartitionedTopic(String topic) voiddeletePartitionedTopic(String topic, boolean force, boolean deleteSchema) deletePartitionedTopicAsync(String topic, boolean force, boolean deleteSchema) voiddeleteSubscription(String topic, String subName) voiddeleteSubscription(String topic, String subName, boolean force) deleteSubscriptionAsync(String topic, String subName) deleteSubscriptionAsync(String topic, String subName, boolean force) voiddisableDeduplication(String topic) disableDeduplicationAsync(String topic) voidenableDeduplication(String topic, boolean enabled) enableDeduplicationAsync(String topic, boolean enabled) org.apache.pulsar.client.api.Message<byte[]>examineMessage(String topic, String initialPosition, long messagePosition) CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>>examineMessageAsync(String topic, String initialPosition, long messagePosition) voidexpireMessages(String topic, String subName, long expireTimeInSeconds) voidexpireMessages(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) expireMessagesAsync(String topic, String subName, long expireTimeInSeconds) expireMessagesAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) voidexpireMessagesForAllSubscriptions(String topic, long expireTimeInSeconds) expireMessagesForAllSubscriptionsAsync(String topic, long expireTimeInSeconds) getBacklogQuotaMap(String topic) getBacklogQuotaMap(String topic, boolean applied) getBacklogSizeByMessageId(String topic, org.apache.pulsar.client.api.MessageId messageId) getBacklogSizeByMessageIdAsync(String topic, org.apache.pulsar.client.api.MessageId messageId) getCompactionThreshold(String topic) getCompactionThreshold(String topic, boolean applied) getCompactionThresholdAsync(String topic, boolean applied) getDeduplicationEnabled(String topic) getDeduplicationStatus(String topic) getDeduplicationStatus(String topic, boolean applied) getDeduplicationStatusAsync(String topic, boolean applied) getDelayedDeliveryPolicy(String topic) getDelayedDeliveryPolicy(String topic, boolean applied) getDelayedDeliveryPolicyAsync(String topic, boolean applied) getDispatchRate(String topic) getDispatchRate(String topic, boolean applied) getDispatchRateAsync(String topic) getDispatchRateAsync(String topic, boolean applied) getInactiveTopicPolicies(String topic) getInactiveTopicPolicies(String topic, boolean applied) getInactiveTopicPoliciesAsync(String topic, boolean applied) getInternalInfo(String topic) getInternalInfoAsync(String topic) getInternalStats(String topic) getInternalStats(String topic, boolean metadata) getInternalStatsAsync(String topic) getInternalStatsAsync(String topic, boolean metadata) org.apache.pulsar.client.api.MessageIdgetLastMessageId(String topic) CompletableFuture<org.apache.pulsar.client.api.MessageId>getLastMessageIdAsync(String topic) getList(String namespace, TopicDomain topicDomain) getList(String namespace, TopicDomain topicDomain, Map<Topics.QueryParam, Object> params) getList(String namespace, TopicDomain topicDomain, ListTopicsOptions options) getListAsync(String namespace) getListAsync(String namespace, TopicDomain topicDomain) getListAsync(String namespace, TopicDomain topicDomain, Map<Topics.QueryParam, Object> params) getListAsync(String namespace, TopicDomain topicDomain, ListTopicsOptions options) getListInBundle(String namespace, String bundleRange) getListInBundleAsync(String namespace, String bundleRange) getMaxConsumers(String topic) getMaxConsumers(String topic, boolean applied) getMaxConsumersAsync(String topic) getMaxConsumersAsync(String topic, boolean applied) getMaxMessageSize(String topic) getMaxMessageSizeAsync(String topic) getMaxProducers(String topic) getMaxProducers(String topic, boolean applied) getMaxProducersAsync(String topic) getMaxProducersAsync(String topic, boolean applied) getMaxUnackedMessagesOnConsumer(String topic, boolean applied) getMaxUnackedMessagesOnConsumerAsync(String topic, boolean applied) getMaxUnackedMessagesOnSubscription(String topic, boolean applied) getMaxUnackedMessagesOnSubscriptionAsync(String topic, boolean applied) org.apache.pulsar.client.api.Message<byte[]>getMessageById(String topic, long ledgerId, long entryId) CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>>getMessageByIdAsync(String topic, long ledgerId, long entryId) org.apache.pulsar.client.api.MessageIdgetMessageIdByTimestamp(String topic, long timestamp) CompletableFuture<org.apache.pulsar.client.api.MessageId>getMessageIdByTimestampAsync(String topic, long timestamp) getMessageTTL(String topic) getMessageTTL(String topic, boolean applied) getOffloadPolicies(String topic) getOffloadPolicies(String topic, boolean applied) getOffloadPoliciesAsync(String topic) getOffloadPoliciesAsync(String topic, boolean applied) getPartitionedStats(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) getPartitionedStats(String topic, boolean perPartition, GetStatsOptions getStatsOptions) getPartitionedStatsAsync(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) getPartitionedStatsAsync(String topic, boolean perPartition, GetStatsOptions getStatsOptions) getPartitionedTopicList(String namespace) getPartitionedTopicList(String namespace, ListTopicsOptions options) getPartitionedTopicListAsync(String namespace) getPartitionedTopicListAsync(String namespace, ListTopicsOptions options) getPermissions(String topic) getPermissionsAsync(String topic) getPersistence(String topic) getPersistence(String topic, boolean applied) getPersistenceAsync(String topic) getPersistenceAsync(String topic, boolean applied) getProperties(String topic) getPropertiesAsync(String topic) getPublishRate(String topic) getPublishRateAsync(String topic) getReplicatedSubscriptionStatus(String topic, String subName) getReplicatedSubscriptionStatusAsync(String topic, String subName) getReplicationClusters(String topic, boolean applied) getReplicationClustersAsync(String topic, boolean applied) getReplicatorDispatchRate(String topic) getReplicatorDispatchRate(String topic, boolean applied) getReplicatorDispatchRateAsync(String topic, boolean applied) getRetention(String topic) getRetention(String topic, boolean applied) getRetentionAsync(String topic) getRetentionAsync(String topic, boolean applied) booleangetSchemaValidationEnforced(String topic, boolean applied) getSchemaValidationEnforcedAsync(String topic, boolean applied) getShadowSource(String shadowTopic) getShadowSourceAsync(String shadowTopic) getShadowTopics(String sourceTopic) getShadowTopicsAsync(String sourceTopic) getStats(String topic, GetStatsOptions getStatsOptions) getStatsAsync(String topic, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) getStatsAsync(String topic, GetStatsOptions getStatsOptions) getSubscribeRate(String topic) getSubscribeRate(String topic, boolean applied) getSubscribeRateAsync(String topic) getSubscribeRateAsync(String topic, boolean applied) getSubscriptionDispatchRate(String topic, boolean applied) getSubscriptionDispatchRateAsync(String topic, boolean applied) getSubscriptionProperties(String topic, String subName) getSubscriptionPropertiesAsync(String topic, String subName) getSubscriptions(String topic) getSubscriptionsAsync(String topic) Set<org.apache.pulsar.client.api.SubscriptionType>CompletableFuture<Set<org.apache.pulsar.client.api.SubscriptionType>>voidgrantPermission(String topic, String role, Set<AuthAction> actions) grantPermissionAsync(String topic, String role, Set<AuthAction> actions) offloadStatus(String topic) offloadStatusAsync(String topic) List<org.apache.pulsar.client.api.Message<byte[]>>peekMessages(String topic, String subName, int numMessages) CompletableFuture<List<org.apache.pulsar.client.api.Message<byte[]>>>peekMessagesAsync(String topic, String subName, int numMessages) voidremoveBacklogQuota(String topic, BacklogQuota.BacklogQuotaType backlogQuotaType) voidremoveCompactionThreshold(String topic) voidvoidremoveDeduplicationStatus(String topic) voidvoidremoveDispatchRate(String topic) removeDispatchRateAsync(String topic) voidvoidremoveMaxConsumers(String topic) removeMaxConsumersAsync(String topic) voidvoidremoveMaxMessageSize(String topic) removeMaxMessageSizeAsync(String topic) voidremoveMaxProducers(String topic) removeMaxProducersAsync(String topic) voidvoidvoidvoidremoveMessageTTL(String topic) voidremoveOffloadPolicies(String topic) removeOffloadPoliciesAsync(String topic) voidremovePersistence(String topic) removePersistenceAsync(String topic) voidremoveProperties(String topic, String key) removePropertiesAsync(String topic, String key) voidremovePublishRate(String topic) removePublishRateAsync(String topic) voidremoveReplicationClusters(String topic) voidvoidremoveRetention(String topic) removeRetentionAsync(String topic) voidremoveShadowTopics(String sourceTopic) removeShadowTopicsAsync(String sourceTopic) voidremoveSubscribeRate(String topic) removeSubscribeRateAsync(String topic) voidvoidvoidresetCursor(String topic, String subName, long timestamp) voidresetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId) voidresetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) resetCursorAsync(String topic, String subName, long timestamp) resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId) resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) voidrevokePermissions(String topic, String role) revokePermissionsAsync(String topic, String role) voidsetBacklogQuota(String topic, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType) voidsetCompactionThreshold(String topic, long compactionThreshold) setCompactionThresholdAsync(String topic, long compactionThreshold) voidsetDeduplicationSnapshotInterval(String topic, int interval) setDeduplicationSnapshotIntervalAsync(String topic, int interval) voidsetDeduplicationStatus(String topic, boolean enabled) setDeduplicationStatusAsync(String topic, boolean enabled) voidsetDelayedDeliveryPolicy(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) setDelayedDeliveryPolicyAsync(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) voidsetDispatchRate(String topic, DispatchRate dispatchRate) setDispatchRateAsync(String topic, DispatchRate dispatchRate) voidsetInactiveTopicPolicies(String topic, InactiveTopicPolicies inactiveTopicPolicies) setInactiveTopicPoliciesAsync(String topic, InactiveTopicPolicies inactiveTopicPolicies) voidsetMaxConsumers(String topic, int maxConsumers) setMaxConsumersAsync(String topic, int maxConsumers) voidsetMaxConsumersPerSubscription(String topic, int maxConsumersPerSubscription) setMaxConsumersPerSubscriptionAsync(String topic, int maxConsumersPerSubscription) voidsetMaxMessageSize(String topic, int maxMessageSize) setMaxMessageSizeAsync(String topic, int maxMessageSize) voidsetMaxProducers(String topic, int maxProducers) setMaxProducersAsync(String topic, int maxProducers) voidsetMaxSubscriptionsPerTopic(String topic, int maxSubscriptionsPerTopic) setMaxSubscriptionsPerTopicAsync(String topic, int maxSubscriptionsPerTopic) voidsetMaxUnackedMessagesOnConsumer(String topic, int maxNum) setMaxUnackedMessagesOnConsumerAsync(String topic, int maxNum) voidsetMaxUnackedMessagesOnSubscription(String topic, int maxNum) setMaxUnackedMessagesOnSubscriptionAsync(String topic, int maxNum) voidsetMessageTTL(String topic, int messageTTLInSecond) voidsetOffloadPolicies(String topic, OffloadPolicies offloadPolicies) setOffloadPoliciesAsync(String topic, OffloadPolicies offloadPolicies) voidsetPersistence(String topic, PersistencePolicies persistencePolicies) setPersistenceAsync(String topic, PersistencePolicies persistencePolicies) voidsetPublishRate(String topic, PublishRate publishRate) setPublishRateAsync(String topic, PublishRate publishRate) voidsetReplicatedSubscriptionStatus(String topic, String subName, boolean enabled) setReplicatedSubscriptionStatusAsync(String topic, String subName, boolean enabled) voidsetReplicationClusters(String topic, List<String> clusterIds) setReplicationClustersAsync(String topic, List<String> clusterIds) voidsetReplicatorDispatchRate(String topic, DispatchRate dispatchRate) setReplicatorDispatchRateAsync(String topic, DispatchRate dispatchRate) voidsetRetention(String topic, RetentionPolicies retention) setRetentionAsync(String topic, RetentionPolicies retention) voidsetSchemaValidationEnforced(String topic, boolean enable) setSchemaValidationEnforcedAsync(String topic, boolean schemaValidationEnforced) voidsetShadowTopics(String sourceTopic, List<String> shadowTopics) setShadowTopicsAsync(String sourceTopic, List<String> shadowTopics) voidsetSubscribeRate(String topic, SubscribeRate subscribeRate) setSubscribeRateAsync(String topic, SubscribeRate subscribeRate) voidsetSubscriptionDispatchRate(String topic, DispatchRate dispatchRate) setSubscriptionDispatchRateAsync(String topic, DispatchRate dispatchRate) voidsetSubscriptionTypesEnabled(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) setSubscriptionTypesEnabledAsync(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) voidskipAllMessages(String topic, String subName) skipAllMessagesAsync(String topic, String subName) voidskipMessages(String topic, String subName, long numMessages) skipMessagesAsync(String topic, String subName, long numMessages) terminatePartitionedTopic(String topic) CompletableFuture<Map<Integer,org.apache.pulsar.client.api.MessageId>> org.apache.pulsar.client.api.MessageIdterminateTopic(String topic) CompletableFuture<org.apache.pulsar.client.api.MessageId>terminateTopicAsync(String topic) voidtriggerCompaction(String topic) triggerCompactionAsync(String topic) voidtriggerOffload(String topic, org.apache.pulsar.client.api.MessageId messageId) triggerOffloadAsync(String topic, org.apache.pulsar.client.api.MessageId messageId) voidtrimTopicAsync(String topic) voidtruncateAsync(String topic) voidunloadAsync(String topic) voidupdatePartitionedTopic(String topic, int numPartitions) voidupdatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly) voidupdatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force) updatePartitionedTopicAsync(String topic, int numPartitions) updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly) updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force) voidupdateProperties(String topic, Map<String, String> properties) updatePropertiesAsync(String topic, Map<String, String> properties) voidupdateSubscriptionProperties(String topic, String subName, Map<String, String> subscriptionProperties) updateSubscriptionPropertiesAsync(String topic, String subName, Map<String, String> subscriptionProperties) Methods inherited from class org.apache.pulsar.client.admin.internal.BaseResource
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncPostRequest, asyncPostRequestWithResponse, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsync, syncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.admin.Topics
createNonPartitionedTopic, createNonPartitionedTopicAsync, createPartitionedTopic, createPartitionedTopicAsync, createShadowTopic, createShadowTopicAsync, createSubscription, createSubscription, createSubscriptionAsync, createSubscriptionAsync, delete, deleteAsync, deletePartitionedTopic, deletePartitionedTopicAsync, getPartitionedStats, getPartitionedStatsAsync, getStats, getStats, getStats, getStats, getStatsAsync, removeBacklogQuota, setBacklogQuota
-
Field Details
-
PROPERTY_SHADOW_SOURCE_KEY
- See Also:
-
-
Constructor Details
-
TopicsImpl
public TopicsImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, long readTimeoutMs)
-
-
Method Details
-
getList
- Specified by:
getListin interfaceTopics- Throws:
PulsarAdminException
-
getList
- Specified by:
getListin interfaceTopics- Throws:
PulsarAdminException
-
getList
public List<String> getList(String namespace, TopicDomain topicDomain, Map<Topics.QueryParam, Object> params) throws PulsarAdminException- Specified by:
getListin interfaceTopics- Throws:
PulsarAdminException
-
getList
public List<String> getList(String namespace, TopicDomain topicDomain, ListTopicsOptions options) throws PulsarAdminException - Specified by:
getListin interfaceTopics- Throws:
PulsarAdminException
-
getListAsync
- Specified by:
getListAsyncin interfaceTopics
-
getListAsync
- Specified by:
getListAsyncin interfaceTopics
-
getListAsync
public CompletableFuture<List<String>> getListAsync(String namespace, TopicDomain topicDomain, Map<Topics.QueryParam, Object> params) - Specified by:
getListAsyncin interfaceTopics
-
getListAsync
public CompletableFuture<List<String>> getListAsync(String namespace, TopicDomain topicDomain, ListTopicsOptions options) - Specified by:
getListAsyncin interfaceTopics
-
getPartitionedTopicList
- Specified by:
getPartitionedTopicListin interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedTopicList
public List<String> getPartitionedTopicList(String namespace, ListTopicsOptions options) throws PulsarAdminException - Specified by:
getPartitionedTopicListin interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedTopicListAsync
- Specified by:
getPartitionedTopicListAsyncin interfaceTopics
-
getPartitionedTopicListAsync
public CompletableFuture<List<String>> getPartitionedTopicListAsync(String namespace, ListTopicsOptions options) - Specified by:
getPartitionedTopicListAsyncin interfaceTopics
-
getListInBundle
public List<String> getListInBundle(String namespace, String bundleRange) throws PulsarAdminException - Specified by:
getListInBundlein interfaceTopics- Throws:
PulsarAdminException
-
getListInBundleAsync
- Specified by:
getListInBundleAsyncin interfaceTopics
-
getPermissions
- Specified by:
getPermissionsin interfaceTopics- Throws:
PulsarAdminException
-
getPermissionsAsync
- Specified by:
getPermissionsAsyncin interfaceTopics
-
grantPermission
public void grantPermission(String topic, String role, Set<AuthAction> actions) throws PulsarAdminException - Specified by:
grantPermissionin interfaceTopics- Throws:
PulsarAdminException
-
grantPermissionAsync
public CompletableFuture<Void> grantPermissionAsync(String topic, String role, Set<AuthAction> actions) - Specified by:
grantPermissionAsyncin interfaceTopics
-
revokePermissions
- Specified by:
revokePermissionsin interfaceTopics- Throws:
PulsarAdminException
-
revokePermissionsAsync
- Specified by:
revokePermissionsAsyncin interfaceTopics
-
createPartitionedTopic
public void createPartitionedTopic(String topic, int numPartitions, Map<String, String> metadata) throws PulsarAdminException- Specified by:
createPartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
createNonPartitionedTopic
public void createNonPartitionedTopic(String topic, Map<String, String> metadata) throws PulsarAdminException- Specified by:
createNonPartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
createMissedPartitions
- Specified by:
createMissedPartitionsin interfaceTopics- Throws:
PulsarAdminException
-
createNonPartitionedTopicAsync
public CompletableFuture<Void> createNonPartitionedTopicAsync(String topic, Map<String, String> properties) - Specified by:
createNonPartitionedTopicAsyncin interfaceTopics
-
createPartitionedTopicAsync
public CompletableFuture<Void> createPartitionedTopicAsync(String topic, int numPartitions, Map<String, String> properties) - Specified by:
createPartitionedTopicAsyncin interfaceTopics
-
createPartitionedTopicAsync
-
createMissedPartitionsAsync
- Specified by:
createMissedPartitionsAsyncin interfaceTopics
-
updatePartitionedTopic
- Specified by:
updatePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
updatePartitionedTopicAsync
- Specified by:
updatePartitionedTopicAsyncin interfaceTopics
-
updatePartitionedTopic
public void updatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly) throws PulsarAdminException - Specified by:
updatePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
updatePartitionedTopic
public void updatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force) throws PulsarAdminException - Specified by:
updatePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
updatePartitionedTopicAsync
public CompletableFuture<Void> updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly) - Specified by:
updatePartitionedTopicAsyncin interfaceTopics
-
updatePartitionedTopicAsync
public CompletableFuture<Void> updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force) - Specified by:
updatePartitionedTopicAsyncin interfaceTopics
-
getPartitionedTopicMetadata
public PartitionedTopicMetadata getPartitionedTopicMetadata(String topic) throws PulsarAdminException - Specified by:
getPartitionedTopicMetadatain interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedTopicMetadataAsync
- Specified by:
getPartitionedTopicMetadataAsyncin interfaceTopics
-
getProperties
- Specified by:
getPropertiesin interfaceTopics- Throws:
PulsarAdminException
-
getPropertiesAsync
- Specified by:
getPropertiesAsyncin interfaceTopics
-
updateProperties
public void updateProperties(String topic, Map<String, String> properties) throws PulsarAdminException- Specified by:
updatePropertiesin interfaceTopics- Throws:
PulsarAdminException
-
updatePropertiesAsync
- Specified by:
updatePropertiesAsyncin interfaceTopics
-
deletePartitionedTopic
- Specified by:
deletePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
removeProperties
- Specified by:
removePropertiesin interfaceTopics- Throws:
PulsarAdminException
-
removePropertiesAsync
- Specified by:
removePropertiesAsyncin interfaceTopics
-
deletePartitionedTopicAsync
- Specified by:
deletePartitionedTopicAsyncin interfaceTopics
-
deletePartitionedTopic
public void deletePartitionedTopic(String topic, boolean force, boolean deleteSchema) throws PulsarAdminException - Specified by:
deletePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
deletePartitionedTopicAsync
public CompletableFuture<Void> deletePartitionedTopicAsync(String topic, boolean force, boolean deleteSchema) - Specified by:
deletePartitionedTopicAsyncin interfaceTopics
-
delete
- Specified by:
deletein interfaceTopics- Throws:
PulsarAdminException
-
deleteAsync
- Specified by:
deleteAsyncin interfaceTopics
-
delete
- Specified by:
deletein interfaceTopics- Throws:
PulsarAdminException
-
deleteAsync
- Specified by:
deleteAsyncin interfaceTopics
-
unload
- Specified by:
unloadin interfaceTopics- Throws:
PulsarAdminException
-
unloadAsync
- Specified by:
unloadAsyncin interfaceTopics
-
terminateTopic
public org.apache.pulsar.client.api.MessageId terminateTopic(String topic) throws PulsarAdminException - Specified by:
terminateTopicin interfaceTopics- Throws:
PulsarAdminException
-
terminateTopicAsync
- Specified by:
terminateTopicAsyncin interfaceTopics
-
terminatePartitionedTopic
public Map<Integer,org.apache.pulsar.client.api.MessageId> terminatePartitionedTopic(String topic) throws PulsarAdminException - Specified by:
terminatePartitionedTopicin interfaceTopics- Throws:
PulsarAdminException
-
terminatePartitionedTopicAsync
public CompletableFuture<Map<Integer,org.apache.pulsar.client.api.MessageId>> terminatePartitionedTopicAsync(String topic) - Specified by:
terminatePartitionedTopicAsyncin interfaceTopics
-
getSubscriptions
- Specified by:
getSubscriptionsin interfaceTopics- Throws:
PulsarAdminException
-
getSubscriptionsAsync
- Specified by:
getSubscriptionsAsyncin interfaceTopics
-
getStats
public TopicStats getStats(String topic, GetStatsOptions getStatsOptions) throws PulsarAdminException - Specified by:
getStatsin interfaceTopics- Throws:
PulsarAdminException
-
getStatsAsync
public CompletableFuture<TopicStats> getStatsAsync(String topic, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) - Specified by:
getStatsAsyncin interfaceTopics
-
getStatsAsync
- Specified by:
getStatsAsyncin interfaceTopics
-
getInternalStats
- Specified by:
getInternalStatsin interfaceTopics- Throws:
PulsarAdminException
-
getInternalStats
public PersistentTopicInternalStats getInternalStats(String topic, boolean metadata) throws PulsarAdminException - Specified by:
getInternalStatsin interfaceTopics- Throws:
PulsarAdminException
-
getInternalStatsAsync
- Specified by:
getInternalStatsAsyncin interfaceTopics
-
getInternalStatsAsync
public CompletableFuture<PersistentTopicInternalStats> getInternalStatsAsync(String topic, boolean metadata) - Specified by:
getInternalStatsAsyncin interfaceTopics
-
getInternalInfo
- Specified by:
getInternalInfoin interfaceTopics- Throws:
PulsarAdminException
-
getInternalInfoAsync
- Specified by:
getInternalInfoAsyncin interfaceTopics
-
getPartitionedStats
public PartitionedTopicStats getPartitionedStats(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) throws PulsarAdminException - Specified by:
getPartitionedStatsin interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedStats
public PartitionedTopicStats getPartitionedStats(String topic, boolean perPartition, GetStatsOptions getStatsOptions) throws PulsarAdminException - Specified by:
getPartitionedStatsin interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedStatsAsync
public CompletableFuture<PartitionedTopicStats> getPartitionedStatsAsync(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) - Specified by:
getPartitionedStatsAsyncin interfaceTopics
-
getPartitionedStatsAsync
public CompletableFuture<PartitionedTopicStats> getPartitionedStatsAsync(String topic, boolean perPartition, GetStatsOptions getStatsOptions) - Specified by:
getPartitionedStatsAsyncin interfaceTopics
-
getPartitionedInternalStats
public PartitionedTopicInternalStats getPartitionedInternalStats(String topic) throws PulsarAdminException - Specified by:
getPartitionedInternalStatsin interfaceTopics- Throws:
PulsarAdminException
-
getPartitionedInternalStatsAsync
public CompletableFuture<PartitionedTopicInternalStats> getPartitionedInternalStatsAsync(String topic) - Specified by:
getPartitionedInternalStatsAsyncin interfaceTopics
-
deleteSubscription
- Specified by:
deleteSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
deleteSubscription
public void deleteSubscription(String topic, String subName, boolean force) throws PulsarAdminException - Specified by:
deleteSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
deleteSubscriptionAsync
- Specified by:
deleteSubscriptionAsyncin interfaceTopics
-
deleteSubscriptionAsync
- Specified by:
deleteSubscriptionAsyncin interfaceTopics
-
skipAllMessages
- Specified by:
skipAllMessagesin interfaceTopics- Throws:
PulsarAdminException
-
skipAllMessagesAsync
- Specified by:
skipAllMessagesAsyncin interfaceTopics
-
skipMessages
public void skipMessages(String topic, String subName, long numMessages) throws PulsarAdminException - Specified by:
skipMessagesin interfaceTopics- Throws:
PulsarAdminException
-
skipMessagesAsync
- Specified by:
skipMessagesAsyncin interfaceTopics
-
expireMessages
public void expireMessages(String topic, String subName, long expireTimeInSeconds) throws PulsarAdminException - Specified by:
expireMessagesin interfaceTopics- Throws:
PulsarAdminException
-
expireMessagesAsync
public CompletableFuture<Void> expireMessagesAsync(String topic, String subName, long expireTimeInSeconds) - Specified by:
expireMessagesAsyncin interfaceTopics
-
expireMessages
public void expireMessages(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) throws PulsarAdminException - Specified by:
expireMessagesin interfaceTopics- Throws:
PulsarAdminException
-
expireMessagesAsync
public CompletableFuture<Void> expireMessagesAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) - Specified by:
expireMessagesAsyncin interfaceTopics
-
expireMessagesForAllSubscriptions
public void expireMessagesForAllSubscriptions(String topic, long expireTimeInSeconds) throws PulsarAdminException - Specified by:
expireMessagesForAllSubscriptionsin interfaceTopics- Throws:
PulsarAdminException
-
expireMessagesForAllSubscriptionsAsync
public CompletableFuture<Void> expireMessagesForAllSubscriptionsAsync(String topic, long expireTimeInSeconds) - Specified by:
expireMessagesForAllSubscriptionsAsyncin interfaceTopics
-
peekMessages
public List<org.apache.pulsar.client.api.Message<byte[]>> peekMessages(String topic, String subName, int numMessages) throws PulsarAdminException - Specified by:
peekMessagesin interfaceTopics- Throws:
PulsarAdminException
-
peekMessagesAsync
public CompletableFuture<List<org.apache.pulsar.client.api.Message<byte[]>>> peekMessagesAsync(String topic, String subName, int numMessages) - Specified by:
peekMessagesAsyncin interfaceTopics
-
examineMessage
public org.apache.pulsar.client.api.Message<byte[]> examineMessage(String topic, String initialPosition, long messagePosition) throws PulsarAdminException - Specified by:
examineMessagein interfaceTopics- Throws:
PulsarAdminException
-
examineMessageAsync
public CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>> examineMessageAsync(String topic, String initialPosition, long messagePosition) - Specified by:
examineMessageAsyncin interfaceTopics
-
truncate
- Specified by:
truncatein interfaceTopics- Throws:
PulsarAdminException
-
truncateAsync
- Specified by:
truncateAsyncin interfaceTopics
-
getMessageByIdAsync
public CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>> getMessageByIdAsync(String topic, long ledgerId, long entryId) - Specified by:
getMessageByIdAsyncin interfaceTopics
-
getMessageById
public org.apache.pulsar.client.api.Message<byte[]> getMessageById(String topic, long ledgerId, long entryId) throws PulsarAdminException - Specified by:
getMessageByIdin interfaceTopics- Throws:
PulsarAdminException
-
getMessageIdByTimestampAsync
public CompletableFuture<org.apache.pulsar.client.api.MessageId> getMessageIdByTimestampAsync(String topic, long timestamp) - Specified by:
getMessageIdByTimestampAsyncin interfaceTopics
-
getMessageIdByTimestamp
public org.apache.pulsar.client.api.MessageId getMessageIdByTimestamp(String topic, long timestamp) throws PulsarAdminException - Specified by:
getMessageIdByTimestampin interfaceTopics- Throws:
PulsarAdminException
-
createSubscription
public void createSubscription(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean replicated, Map<String, String> properties) throws PulsarAdminException- Specified by:
createSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
createSubscriptionAsync
public CompletableFuture<Void> createSubscriptionAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean replicated, Map<String, String> properties) - Specified by:
createSubscriptionAsyncin interfaceTopics
-
resetCursor
- Specified by:
resetCursorin interfaceTopics- Throws:
PulsarAdminException
-
resetCursorAsync
- Specified by:
resetCursorAsyncin interfaceTopics
-
resetCursor
public void resetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException - Specified by:
resetCursorin interfaceTopics- Throws:
PulsarAdminException
-
updateSubscriptionProperties
public void updateSubscriptionProperties(String topic, String subName, Map<String, String> subscriptionProperties) throws PulsarAdminException- Specified by:
updateSubscriptionPropertiesin interfaceTopics- Throws:
PulsarAdminException
-
getSubscriptionProperties
public Map<String,String> getSubscriptionProperties(String topic, String subName) throws PulsarAdminException - Specified by:
getSubscriptionPropertiesin interfaceTopics- Throws:
PulsarAdminException
-
updateSubscriptionPropertiesAsync
public CompletableFuture<Void> updateSubscriptionPropertiesAsync(String topic, String subName, Map<String, String> subscriptionProperties) - Specified by:
updateSubscriptionPropertiesAsyncin interfaceTopics
-
getSubscriptionPropertiesAsync
public CompletableFuture<Map<String,String>> getSubscriptionPropertiesAsync(String topic, String subName) - Specified by:
getSubscriptionPropertiesAsyncin interfaceTopics
-
resetCursor
public void resetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) throws PulsarAdminException - Specified by:
resetCursorin interfaceTopics- Throws:
PulsarAdminException
-
resetCursorAsync
public CompletableFuture<Void> resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId) - Specified by:
resetCursorAsyncin interfaceTopics
-
resetCursorAsync
public CompletableFuture<Void> resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) - Specified by:
resetCursorAsyncin interfaceTopics
-
triggerCompaction
- Specified by:
triggerCompactionin interfaceTopics- Throws:
PulsarAdminException
-
triggerCompactionAsync
- Specified by:
triggerCompactionAsyncin interfaceTopics
-
trimTopic
- Specified by:
trimTopicin interfaceTopics- Throws:
PulsarAdminException
-
trimTopicAsync
- Specified by:
trimTopicAsyncin interfaceTopics
-
compactionStatus
- Specified by:
compactionStatusin interfaceTopics- Throws:
PulsarAdminException
-
compactionStatusAsync
- Specified by:
compactionStatusAsyncin interfaceTopics
-
triggerOffload
public void triggerOffload(String topic, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException - Specified by:
triggerOffloadin interfaceTopics- Throws:
PulsarAdminException
-
triggerOffloadAsync
public CompletableFuture<Void> triggerOffloadAsync(String topic, org.apache.pulsar.client.api.MessageId messageId) - Specified by:
triggerOffloadAsyncin interfaceTopics
-
offloadStatus
- Specified by:
offloadStatusin interfaceTopics- Throws:
PulsarAdminException
-
offloadStatusAsync
- Specified by:
offloadStatusAsyncin interfaceTopics
-
getLastMessageId
public org.apache.pulsar.client.api.MessageId getLastMessageId(String topic) throws PulsarAdminException - Specified by:
getLastMessageIdin interfaceTopics- Throws:
PulsarAdminException
-
getLastMessageIdAsync
public CompletableFuture<org.apache.pulsar.client.api.MessageId> getLastMessageIdAsync(String topic) - Specified by:
getLastMessageIdAsyncin interfaceTopics
-
getBacklogQuotaMap
public Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic) throws PulsarAdminException - Specified by:
getBacklogQuotaMapin interfaceTopics- Throws:
PulsarAdminException
-
getBacklogQuotaMap
public Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic, boolean applied) throws PulsarAdminException - Specified by:
getBacklogQuotaMapin interfaceTopics- Throws:
PulsarAdminException
-
analyzeSubscriptionBacklog
public AnalyzeSubscriptionBacklogResult analyzeSubscriptionBacklog(String topic, String subscriptionName, Optional<org.apache.pulsar.client.api.MessageId> startPosition) throws PulsarAdminException - Specified by:
analyzeSubscriptionBacklogin interfaceTopics- Throws:
PulsarAdminException
-
analyzeSubscriptionBacklogAsync
public CompletableFuture<AnalyzeSubscriptionBacklogResult> analyzeSubscriptionBacklogAsync(String topic, String subscriptionName, Optional<org.apache.pulsar.client.api.MessageId> startPosition) - Specified by:
analyzeSubscriptionBacklogAsyncin interfaceTopics
-
getBacklogSizeByMessageId
public Long getBacklogSizeByMessageId(String topic, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException - Specified by:
getBacklogSizeByMessageIdin interfaceTopics- Throws:
PulsarAdminException
-
getBacklogSizeByMessageIdAsync
public CompletableFuture<Long> getBacklogSizeByMessageIdAsync(String topic, org.apache.pulsar.client.api.MessageId messageId) - Specified by:
getBacklogSizeByMessageIdAsyncin interfaceTopics
-
setBacklogQuota
public void setBacklogQuota(String topic, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException - Specified by:
setBacklogQuotain interfaceTopics- Throws:
PulsarAdminException
-
removeBacklogQuota
public void removeBacklogQuota(String topic, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException - Specified by:
removeBacklogQuotain interfaceTopics- Throws:
PulsarAdminException
-
getMaxUnackedMessagesOnConsumer
- Specified by:
getMaxUnackedMessagesOnConsumerin interfaceTopics- Throws:
PulsarAdminException
-
getMaxUnackedMessagesOnConsumerAsync
- Specified by:
getMaxUnackedMessagesOnConsumerAsyncin interfaceTopics
-
getMaxUnackedMessagesOnConsumer
public Integer getMaxUnackedMessagesOnConsumer(String topic, boolean applied) throws PulsarAdminException - Specified by:
getMaxUnackedMessagesOnConsumerin interfaceTopics- Throws:
PulsarAdminException
-
getMaxUnackedMessagesOnConsumerAsync
public CompletableFuture<Integer> getMaxUnackedMessagesOnConsumerAsync(String topic, boolean applied) - Specified by:
getMaxUnackedMessagesOnConsumerAsyncin interfaceTopics
-
setMaxUnackedMessagesOnConsumerAsync
- Specified by:
setMaxUnackedMessagesOnConsumerAsyncin interfaceTopics
-
setMaxUnackedMessagesOnConsumer
- Specified by:
setMaxUnackedMessagesOnConsumerin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxUnackedMessagesOnConsumerAsync
- Specified by:
removeMaxUnackedMessagesOnConsumerAsyncin interfaceTopics
-
removeMaxUnackedMessagesOnConsumer
- Specified by:
removeMaxUnackedMessagesOnConsumerin interfaceTopics- Throws:
PulsarAdminException
-
getInactiveTopicPolicies
public InactiveTopicPolicies getInactiveTopicPolicies(String topic, boolean applied) throws PulsarAdminException - Specified by:
getInactiveTopicPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
getInactiveTopicPoliciesAsync
public CompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String topic, boolean applied) - Specified by:
getInactiveTopicPoliciesAsyncin interfaceTopics
-
getInactiveTopicPolicies
- Specified by:
getInactiveTopicPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
getInactiveTopicPoliciesAsync
- Specified by:
getInactiveTopicPoliciesAsyncin interfaceTopics
-
setInactiveTopicPoliciesAsync
public CompletableFuture<Void> setInactiveTopicPoliciesAsync(String topic, InactiveTopicPolicies inactiveTopicPolicies) - Specified by:
setInactiveTopicPoliciesAsyncin interfaceTopics
-
setInactiveTopicPolicies
public void setInactiveTopicPolicies(String topic, InactiveTopicPolicies inactiveTopicPolicies) throws PulsarAdminException - Specified by:
setInactiveTopicPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
removeInactiveTopicPoliciesAsync
- Specified by:
removeInactiveTopicPoliciesAsyncin interfaceTopics
-
removeInactiveTopicPolicies
- Specified by:
removeInactiveTopicPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
getDelayedDeliveryPolicy
public DelayedDeliveryPolicies getDelayedDeliveryPolicy(String topic, boolean applied) throws PulsarAdminException - Specified by:
getDelayedDeliveryPolicyin interfaceTopics- Throws:
PulsarAdminException
-
getDelayedDeliveryPolicyAsync
public CompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryPolicyAsync(String topic, boolean applied) - Specified by:
getDelayedDeliveryPolicyAsyncin interfaceTopics
-
getDelayedDeliveryPolicy
- Specified by:
getDelayedDeliveryPolicyin interfaceTopics- Throws:
PulsarAdminException
-
getDelayedDeliveryPolicyAsync
- Specified by:
getDelayedDeliveryPolicyAsyncin interfaceTopics
-
removeDelayedDeliveryPolicyAsync
- Specified by:
removeDelayedDeliveryPolicyAsyncin interfaceTopics
-
removeDelayedDeliveryPolicy
- Specified by:
removeDelayedDeliveryPolicyin interfaceTopics- Throws:
PulsarAdminException
-
setDelayedDeliveryPolicyAsync
public CompletableFuture<Void> setDelayedDeliveryPolicyAsync(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) - Specified by:
setDelayedDeliveryPolicyAsyncin interfaceTopics
-
setDelayedDeliveryPolicy
public void setDelayedDeliveryPolicy(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) throws PulsarAdminException - Specified by:
setDelayedDeliveryPolicyin interfaceTopics- Throws:
PulsarAdminException
-
getDeduplicationEnabled
- Specified by:
getDeduplicationEnabledin interfaceTopics- Throws:
PulsarAdminException
-
getDeduplicationEnabledAsync
- Specified by:
getDeduplicationEnabledAsyncin interfaceTopics
-
getDeduplicationStatus
- Specified by:
getDeduplicationStatusin interfaceTopics- Throws:
PulsarAdminException
-
getDeduplicationStatusAsync
- Specified by:
getDeduplicationStatusAsyncin interfaceTopics
-
getDeduplicationStatus
- Specified by:
getDeduplicationStatusin interfaceTopics- Throws:
PulsarAdminException
-
getDeduplicationStatusAsync
- Specified by:
getDeduplicationStatusAsyncin interfaceTopics
-
enableDeduplication
- Specified by:
enableDeduplicationin interfaceTopics- Throws:
PulsarAdminException
-
enableDeduplicationAsync
- Specified by:
enableDeduplicationAsyncin interfaceTopics
-
setDeduplicationStatus
- Specified by:
setDeduplicationStatusin interfaceTopics- Throws:
PulsarAdminException
-
setDeduplicationStatusAsync
- Specified by:
setDeduplicationStatusAsyncin interfaceTopics
-
disableDeduplication
- Specified by:
disableDeduplicationin interfaceTopics- Throws:
PulsarAdminException
-
disableDeduplicationAsync
- Specified by:
disableDeduplicationAsyncin interfaceTopics
-
removeDeduplicationStatus
- Specified by:
removeDeduplicationStatusin interfaceTopics- Throws:
PulsarAdminException
-
removeDeduplicationStatusAsync
- Specified by:
removeDeduplicationStatusAsyncin interfaceTopics
-
getOffloadPolicies
- Specified by:
getOffloadPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
getOffloadPoliciesAsync
- Specified by:
getOffloadPoliciesAsyncin interfaceTopics
-
getOffloadPolicies
public OffloadPolicies getOffloadPolicies(String topic, boolean applied) throws PulsarAdminException - Specified by:
getOffloadPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
getOffloadPoliciesAsync
- Specified by:
getOffloadPoliciesAsyncin interfaceTopics
-
setOffloadPolicies
public void setOffloadPolicies(String topic, OffloadPolicies offloadPolicies) throws PulsarAdminException - Specified by:
setOffloadPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
setOffloadPoliciesAsync
public CompletableFuture<Void> setOffloadPoliciesAsync(String topic, OffloadPolicies offloadPolicies) - Specified by:
setOffloadPoliciesAsyncin interfaceTopics
-
removeOffloadPolicies
- Specified by:
removeOffloadPoliciesin interfaceTopics- Throws:
PulsarAdminException
-
removeOffloadPoliciesAsync
- Specified by:
removeOffloadPoliciesAsyncin interfaceTopics
-
getMaxUnackedMessagesOnSubscription
- Specified by:
getMaxUnackedMessagesOnSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
getMaxUnackedMessagesOnSubscriptionAsync
- Specified by:
getMaxUnackedMessagesOnSubscriptionAsyncin interfaceTopics
-
getMaxUnackedMessagesOnSubscription
public Integer getMaxUnackedMessagesOnSubscription(String topic, boolean applied) throws PulsarAdminException - Specified by:
getMaxUnackedMessagesOnSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
getMaxUnackedMessagesOnSubscriptionAsync
public CompletableFuture<Integer> getMaxUnackedMessagesOnSubscriptionAsync(String topic, boolean applied) - Specified by:
getMaxUnackedMessagesOnSubscriptionAsyncin interfaceTopics
-
setMaxUnackedMessagesOnSubscription
public void setMaxUnackedMessagesOnSubscription(String topic, int maxNum) throws PulsarAdminException - Specified by:
setMaxUnackedMessagesOnSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
setMaxUnackedMessagesOnSubscriptionAsync
- Specified by:
setMaxUnackedMessagesOnSubscriptionAsyncin interfaceTopics
-
removeMaxUnackedMessagesOnSubscription
- Specified by:
removeMaxUnackedMessagesOnSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxUnackedMessagesOnSubscriptionAsync
- Specified by:
removeMaxUnackedMessagesOnSubscriptionAsyncin interfaceTopics
-
setMessageTTL
- Specified by:
setMessageTTLin interfaceTopics- Throws:
PulsarAdminException
-
getMessageTTL
- Specified by:
getMessageTTLin interfaceTopics- Throws:
PulsarAdminException
-
getMessageTTL
- Specified by:
getMessageTTLin interfaceTopics- Throws:
PulsarAdminException
-
removeMessageTTL
- Specified by:
removeMessageTTLin interfaceTopics- Throws:
PulsarAdminException
-
setRetention
- Specified by:
setRetentionin interfaceTopics- Throws:
PulsarAdminException
-
setRetentionAsync
- Specified by:
setRetentionAsyncin interfaceTopics
-
getRetention
- Specified by:
getRetentionin interfaceTopics- Throws:
PulsarAdminException
-
getRetentionAsync
- Specified by:
getRetentionAsyncin interfaceTopics
-
getRetention
- Specified by:
getRetentionin interfaceTopics- Throws:
PulsarAdminException
-
getRetentionAsync
- Specified by:
getRetentionAsyncin interfaceTopics
-
removeRetention
- Specified by:
removeRetentionin interfaceTopics- Throws:
PulsarAdminException
-
removeRetentionAsync
- Specified by:
removeRetentionAsyncin interfaceTopics
-
setPersistence
public void setPersistence(String topic, PersistencePolicies persistencePolicies) throws PulsarAdminException - Specified by:
setPersistencein interfaceTopics- Throws:
PulsarAdminException
-
setPersistenceAsync
public CompletableFuture<Void> setPersistenceAsync(String topic, PersistencePolicies persistencePolicies) - Specified by:
setPersistenceAsyncin interfaceTopics
-
getPersistence
- Specified by:
getPersistencein interfaceTopics- Throws:
PulsarAdminException
-
getPersistenceAsync
- Specified by:
getPersistenceAsyncin interfaceTopics
-
getPersistence
public PersistencePolicies getPersistence(String topic, boolean applied) throws PulsarAdminException - Specified by:
getPersistencein interfaceTopics- Throws:
PulsarAdminException
-
getPersistenceAsync
- Specified by:
getPersistenceAsyncin interfaceTopics
-
removePersistence
- Specified by:
removePersistencein interfaceTopics- Throws:
PulsarAdminException
-
removePersistenceAsync
- Specified by:
removePersistenceAsyncin interfaceTopics
-
getDispatchRate
- Specified by:
getDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getDispatchRateAsync
- Specified by:
getDispatchRateAsyncin interfaceTopics
-
getDispatchRate
- Specified by:
getDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getDispatchRateAsync
- Specified by:
getDispatchRateAsyncin interfaceTopics
-
setDispatchRate
- Specified by:
setDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
setDispatchRateAsync
- Specified by:
setDispatchRateAsyncin interfaceTopics
-
removeDispatchRate
- Specified by:
removeDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
removeDispatchRateAsync
- Specified by:
removeDispatchRateAsyncin interfaceTopics
-
getSubscriptionDispatchRate
public DispatchRate getSubscriptionDispatchRate(String topic, boolean applied) throws PulsarAdminException - Specified by:
getSubscriptionDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getSubscriptionDispatchRateAsync
public CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic, boolean applied) - Specified by:
getSubscriptionDispatchRateAsyncin interfaceTopics
-
getSubscriptionDispatchRate
- Specified by:
getSubscriptionDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getSubscriptionDispatchRateAsync
- Specified by:
getSubscriptionDispatchRateAsyncin interfaceTopics
-
setSubscriptionDispatchRate
public void setSubscriptionDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException - Specified by:
setSubscriptionDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
setSubscriptionDispatchRateAsync
public CompletableFuture<Void> setSubscriptionDispatchRateAsync(String topic, DispatchRate dispatchRate) - Specified by:
setSubscriptionDispatchRateAsyncin interfaceTopics
-
removeSubscriptionDispatchRate
- Specified by:
removeSubscriptionDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
removeSubscriptionDispatchRateAsync
- Specified by:
removeSubscriptionDispatchRateAsyncin interfaceTopics
-
getCompactionThreshold
- Specified by:
getCompactionThresholdin interfaceTopics- Throws:
PulsarAdminException
-
getCompactionThresholdAsync
- Specified by:
getCompactionThresholdAsyncin interfaceTopics
-
getCompactionThreshold
- Specified by:
getCompactionThresholdin interfaceTopics- Throws:
PulsarAdminException
-
getCompactionThresholdAsync
- Specified by:
getCompactionThresholdAsyncin interfaceTopics
-
setCompactionThreshold
public void setCompactionThreshold(String topic, long compactionThreshold) throws PulsarAdminException - Specified by:
setCompactionThresholdin interfaceTopics- Throws:
PulsarAdminException
-
setCompactionThresholdAsync
- Specified by:
setCompactionThresholdAsyncin interfaceTopics
-
removeCompactionThreshold
- Specified by:
removeCompactionThresholdin interfaceTopics- Throws:
PulsarAdminException
-
removeCompactionThresholdAsync
- Specified by:
removeCompactionThresholdAsyncin interfaceTopics
-
getPublishRate
- Specified by:
getPublishRatein interfaceTopics- Throws:
PulsarAdminException
-
getPublishRateAsync
- Specified by:
getPublishRateAsyncin interfaceTopics
-
setPublishRate
- Specified by:
setPublishRatein interfaceTopics- Throws:
PulsarAdminException
-
setPublishRateAsync
- Specified by:
setPublishRateAsyncin interfaceTopics
-
removePublishRate
- Specified by:
removePublishRatein interfaceTopics- Throws:
PulsarAdminException
-
removePublishRateAsync
- Specified by:
removePublishRateAsyncin interfaceTopics
-
getMaxConsumersPerSubscription
- Specified by:
getMaxConsumersPerSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
getMaxConsumersPerSubscriptionAsync
- Specified by:
getMaxConsumersPerSubscriptionAsyncin interfaceTopics
-
setMaxConsumersPerSubscription
public void setMaxConsumersPerSubscription(String topic, int maxConsumersPerSubscription) throws PulsarAdminException - Specified by:
setMaxConsumersPerSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
setMaxConsumersPerSubscriptionAsync
public CompletableFuture<Void> setMaxConsumersPerSubscriptionAsync(String topic, int maxConsumersPerSubscription) - Specified by:
setMaxConsumersPerSubscriptionAsyncin interfaceTopics
-
removeMaxConsumersPerSubscription
- Specified by:
removeMaxConsumersPerSubscriptionin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxConsumersPerSubscriptionAsync
- Specified by:
removeMaxConsumersPerSubscriptionAsyncin interfaceTopics
-
getMaxProducers
- Specified by:
getMaxProducersin interfaceTopics- Throws:
PulsarAdminException
-
getMaxProducersAsync
- Specified by:
getMaxProducersAsyncin interfaceTopics
-
getMaxProducers
- Specified by:
getMaxProducersin interfaceTopics- Throws:
PulsarAdminException
-
getMaxProducersAsync
- Specified by:
getMaxProducersAsyncin interfaceTopics
-
setMaxProducers
- Specified by:
setMaxProducersin interfaceTopics- Throws:
PulsarAdminException
-
setMaxProducersAsync
- Specified by:
setMaxProducersAsyncin interfaceTopics
-
removeMaxProducers
- Specified by:
removeMaxProducersin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxProducersAsync
- Specified by:
removeMaxProducersAsyncin interfaceTopics
-
getMaxSubscriptionsPerTopic
- Specified by:
getMaxSubscriptionsPerTopicin interfaceTopics- Throws:
PulsarAdminException
-
getMaxSubscriptionsPerTopicAsync
- Specified by:
getMaxSubscriptionsPerTopicAsyncin interfaceTopics
-
setMaxSubscriptionsPerTopic
public void setMaxSubscriptionsPerTopic(String topic, int maxSubscriptionsPerTopic) throws PulsarAdminException - Specified by:
setMaxSubscriptionsPerTopicin interfaceTopics- Throws:
PulsarAdminException
-
setMaxSubscriptionsPerTopicAsync
public CompletableFuture<Void> setMaxSubscriptionsPerTopicAsync(String topic, int maxSubscriptionsPerTopic) - Specified by:
setMaxSubscriptionsPerTopicAsyncin interfaceTopics
-
removeMaxSubscriptionsPerTopic
- Specified by:
removeMaxSubscriptionsPerTopicin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxSubscriptionsPerTopicAsync
- Specified by:
removeMaxSubscriptionsPerTopicAsyncin interfaceTopics
-
getMaxMessageSize
- Specified by:
getMaxMessageSizein interfaceTopics- Throws:
PulsarAdminException
-
getMaxMessageSizeAsync
- Specified by:
getMaxMessageSizeAsyncin interfaceTopics
-
setMaxMessageSize
- Specified by:
setMaxMessageSizein interfaceTopics- Throws:
PulsarAdminException
-
setMaxMessageSizeAsync
- Specified by:
setMaxMessageSizeAsyncin interfaceTopics
-
removeMaxMessageSize
- Specified by:
removeMaxMessageSizein interfaceTopics- Throws:
PulsarAdminException
-
removeMaxMessageSizeAsync
- Specified by:
removeMaxMessageSizeAsyncin interfaceTopics
-
getMaxConsumers
- Specified by:
getMaxConsumersin interfaceTopics- Throws:
PulsarAdminException
-
getMaxConsumersAsync
- Specified by:
getMaxConsumersAsyncin interfaceTopics
-
getMaxConsumers
- Specified by:
getMaxConsumersin interfaceTopics- Throws:
PulsarAdminException
-
getMaxConsumersAsync
- Specified by:
getMaxConsumersAsyncin interfaceTopics
-
setMaxConsumers
- Specified by:
setMaxConsumersin interfaceTopics- Throws:
PulsarAdminException
-
setMaxConsumersAsync
- Specified by:
setMaxConsumersAsyncin interfaceTopics
-
removeMaxConsumers
- Specified by:
removeMaxConsumersin interfaceTopics- Throws:
PulsarAdminException
-
removeMaxConsumersAsync
- Specified by:
removeMaxConsumersAsyncin interfaceTopics
-
getDeduplicationSnapshotInterval
- Specified by:
getDeduplicationSnapshotIntervalin interfaceTopics- Throws:
PulsarAdminException
-
getDeduplicationSnapshotIntervalAsync
- Specified by:
getDeduplicationSnapshotIntervalAsyncin interfaceTopics
-
setDeduplicationSnapshotInterval
public void setDeduplicationSnapshotInterval(String topic, int interval) throws PulsarAdminException - Specified by:
setDeduplicationSnapshotIntervalin interfaceTopics- Throws:
PulsarAdminException
-
setDeduplicationSnapshotIntervalAsync
- Specified by:
setDeduplicationSnapshotIntervalAsyncin interfaceTopics
-
removeDeduplicationSnapshotInterval
- Specified by:
removeDeduplicationSnapshotIntervalin interfaceTopics- Throws:
PulsarAdminException
-
removeDeduplicationSnapshotIntervalAsync
- Specified by:
removeDeduplicationSnapshotIntervalAsyncin interfaceTopics
-
setSubscriptionTypesEnabled
public void setSubscriptionTypesEnabled(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) throws PulsarAdminException - Specified by:
setSubscriptionTypesEnabledin interfaceTopics- Throws:
PulsarAdminException
-
setSubscriptionTypesEnabledAsync
public CompletableFuture<Void> setSubscriptionTypesEnabledAsync(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) - Specified by:
setSubscriptionTypesEnabledAsyncin interfaceTopics
-
getSubscriptionTypesEnabled
public Set<org.apache.pulsar.client.api.SubscriptionType> getSubscriptionTypesEnabled(String topic) throws PulsarAdminException - Specified by:
getSubscriptionTypesEnabledin interfaceTopics- Throws:
PulsarAdminException
-
getSubscriptionTypesEnabledAsync
public CompletableFuture<Set<org.apache.pulsar.client.api.SubscriptionType>> getSubscriptionTypesEnabledAsync(String topic) - Specified by:
getSubscriptionTypesEnabledAsyncin interfaceTopics
-
removeSubscriptionTypesEnabled
- Specified by:
removeSubscriptionTypesEnabledin interfaceTopics- Throws:
PulsarAdminException
-
removeSubscriptionTypesEnabledAsync
- Specified by:
removeSubscriptionTypesEnabledAsyncin interfaceTopics
-
getReplicatorDispatchRate
- Specified by:
getReplicatorDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getReplicatorDispatchRateAsync
- Specified by:
getReplicatorDispatchRateAsyncin interfaceTopics
-
getReplicatorDispatchRate
public DispatchRate getReplicatorDispatchRate(String topic, boolean applied) throws PulsarAdminException - Specified by:
getReplicatorDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
getReplicatorDispatchRateAsync
public CompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String topic, boolean applied) - Specified by:
getReplicatorDispatchRateAsyncin interfaceTopics
-
setReplicatorDispatchRate
public void setReplicatorDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException - Specified by:
setReplicatorDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
setReplicatorDispatchRateAsync
public CompletableFuture<Void> setReplicatorDispatchRateAsync(String topic, DispatchRate dispatchRate) - Specified by:
setReplicatorDispatchRateAsyncin interfaceTopics
-
removeReplicatorDispatchRate
- Specified by:
removeReplicatorDispatchRatein interfaceTopics- Throws:
PulsarAdminException
-
removeReplicatorDispatchRateAsync
- Specified by:
removeReplicatorDispatchRateAsyncin interfaceTopics
-
getSubscribeRate
- Specified by:
getSubscribeRatein interfaceTopics- Throws:
PulsarAdminException
-
getSubscribeRateAsync
- Specified by:
getSubscribeRateAsyncin interfaceTopics
-
getSubscribeRate
- Specified by:
getSubscribeRatein interfaceTopics- Throws:
PulsarAdminException
-
getSubscribeRateAsync
- Specified by:
getSubscribeRateAsyncin interfaceTopics
-
setSubscribeRate
- Specified by:
setSubscribeRatein interfaceTopics- Throws:
PulsarAdminException
-
setSubscribeRateAsync
- Specified by:
setSubscribeRateAsyncin interfaceTopics
-
removeSubscribeRate
- Specified by:
removeSubscribeRatein interfaceTopics- Throws:
PulsarAdminException
-
removeSubscribeRateAsync
- Specified by:
removeSubscribeRateAsyncin interfaceTopics
-
setReplicatedSubscriptionStatus
public void setReplicatedSubscriptionStatus(String topic, String subName, boolean enabled) throws PulsarAdminException - Specified by:
setReplicatedSubscriptionStatusin interfaceTopics- Throws:
PulsarAdminException
-
setReplicatedSubscriptionStatusAsync
public CompletableFuture<Void> setReplicatedSubscriptionStatusAsync(String topic, String subName, boolean enabled) - Specified by:
setReplicatedSubscriptionStatusAsyncin interfaceTopics
-
getReplicatedSubscriptionStatus
public Map<String,Boolean> getReplicatedSubscriptionStatus(String topic, String subName) throws PulsarAdminException - Specified by:
getReplicatedSubscriptionStatusin interfaceTopics- Throws:
PulsarAdminException
-
getReplicatedSubscriptionStatusAsync
public CompletableFuture<Map<String,Boolean>> getReplicatedSubscriptionStatusAsync(String topic, String subName) - Specified by:
getReplicatedSubscriptionStatusAsyncin interfaceTopics
-
getSchemaValidationEnforced
public boolean getSchemaValidationEnforced(String topic, boolean applied) throws PulsarAdminException - Specified by:
getSchemaValidationEnforcedin interfaceTopics- Throws:
PulsarAdminException
-
setSchemaValidationEnforced
- Specified by:
setSchemaValidationEnforcedin interfaceTopics- Throws:
PulsarAdminException
-
getSchemaValidationEnforcedAsync
- Specified by:
getSchemaValidationEnforcedAsyncin interfaceTopics
-
setSchemaValidationEnforcedAsync
public CompletableFuture<Void> setSchemaValidationEnforcedAsync(String topic, boolean schemaValidationEnforced) - Specified by:
setSchemaValidationEnforcedAsyncin interfaceTopics
-
getReplicationClusters
public Set<String> getReplicationClusters(String topic, boolean applied) throws PulsarAdminException - Specified by:
getReplicationClustersin interfaceTopics- Throws:
PulsarAdminException
-
getReplicationClustersAsync
- Specified by:
getReplicationClustersAsyncin interfaceTopics
-
setReplicationClusters
public void setReplicationClusters(String topic, List<String> clusterIds) throws PulsarAdminException - Specified by:
setReplicationClustersin interfaceTopics- Throws:
PulsarAdminException
-
setReplicationClustersAsync
- Specified by:
setReplicationClustersAsyncin interfaceTopics
-
removeReplicationClusters
- Specified by:
removeReplicationClustersin interfaceTopics- Throws:
PulsarAdminException
-
removeReplicationClustersAsync
- Specified by:
removeReplicationClustersAsyncin interfaceTopics
-
setShadowTopics
public void setShadowTopics(String sourceTopic, List<String> shadowTopics) throws PulsarAdminException - Specified by:
setShadowTopicsin interfaceTopics- Throws:
PulsarAdminException
-
removeShadowTopics
- Specified by:
removeShadowTopicsin interfaceTopics- Throws:
PulsarAdminException
-
getShadowTopics
- Specified by:
getShadowTopicsin interfaceTopics- Throws:
PulsarAdminException
-
setShadowTopicsAsync
- Specified by:
setShadowTopicsAsyncin interfaceTopics
-
removeShadowTopicsAsync
- Specified by:
removeShadowTopicsAsyncin interfaceTopics
-
getShadowTopicsAsync
- Specified by:
getShadowTopicsAsyncin interfaceTopics
-
getShadowSource
- Specified by:
getShadowSourcein interfaceTopics- Throws:
PulsarAdminException
-
getShadowSourceAsync
- Specified by:
getShadowSourceAsyncin interfaceTopics
-
createShadowTopic
public void createShadowTopic(String shadowTopic, String sourceTopic, Map<String, String> properties) throws PulsarAdminException- Specified by:
createShadowTopicin interfaceTopics- Throws:
PulsarAdminException
-
createShadowTopicAsync
public CompletableFuture<Void> createShadowTopicAsync(String shadowTopic, String sourceTopic, Map<String, String> properties) - Specified by:
createShadowTopicAsyncin interfaceTopics
-