public class TopicsImpl extends BaseResource implements Topics
auth, readTimeoutMs| Constructor and Description |
|---|
TopicsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteAsync, deletePartitionedTopic, deletePartitionedTopicAsync, getPartitionedStats, getPartitionedStatsAsync, getStats, getStats, getStatsAsync, removeBacklogQuota, setBacklogQuotapublic TopicsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<String> getList(String namespace) throws PulsarAdminException
getList in interface TopicsPulsarAdminExceptionpublic List<String> getList(String namespace, TopicDomain topicDomain) throws PulsarAdminException
getList in interface TopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getListAsync(String namespace)
getListAsync in interface Topicspublic CompletableFuture<List<String>> getListAsync(String namespace, TopicDomain topicDomain)
getListAsync in interface Topicspublic List<String> getPartitionedTopicList(String namespace) throws PulsarAdminException
getPartitionedTopicList in interface TopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getPartitionedTopicListAsync(String namespace)
getPartitionedTopicListAsync in interface Topicspublic List<String> getListInBundle(String namespace, String bundleRange) throws PulsarAdminException
getListInBundle in interface TopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getListInBundleAsync(String namespace, String bundleRange)
getListInBundleAsync in interface Topicspublic Map<String,Set<AuthAction>> getPermissions(String topic) throws PulsarAdminException
getPermissions in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Map<String,Set<AuthAction>>> getPermissionsAsync(String topic)
getPermissionsAsync in interface Topicspublic void grantPermission(String topic, String role, Set<AuthAction> actions) throws PulsarAdminException
grantPermission in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> grantPermissionAsync(String topic, String role, Set<AuthAction> actions)
grantPermissionAsync in interface Topicspublic void revokePermissions(String topic, String role) throws PulsarAdminException
revokePermissions in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> revokePermissionsAsync(String topic, String role)
revokePermissionsAsync in interface Topicspublic void createPartitionedTopic(String topic, int numPartitions) throws PulsarAdminException
createPartitionedTopic in interface TopicsPulsarAdminExceptionpublic void createNonPartitionedTopic(String topic) throws PulsarAdminException
createNonPartitionedTopic in interface TopicsPulsarAdminExceptionpublic void createMissedPartitions(String topic) throws PulsarAdminException
createMissedPartitions in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> createNonPartitionedTopicAsync(String topic)
createNonPartitionedTopicAsync in interface Topicspublic CompletableFuture<Void> createPartitionedTopicAsync(String topic, int numPartitions)
createPartitionedTopicAsync in interface Topicspublic CompletableFuture<Void> createPartitionedTopicAsync(String topic, int numPartitions, boolean createLocalTopicOnly)
public CompletableFuture<Void> createMissedPartitionsAsync(String topic)
createMissedPartitionsAsync in interface Topicspublic void updatePartitionedTopic(String topic, int numPartitions) throws PulsarAdminException
updatePartitionedTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> updatePartitionedTopicAsync(String topic, int numPartitions)
updatePartitionedTopicAsync in interface Topicspublic void updatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly) throws PulsarAdminException
updatePartitionedTopic in interface TopicsPulsarAdminExceptionpublic void updatePartitionedTopic(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force) throws PulsarAdminException
updatePartitionedTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly)
updatePartitionedTopicAsync in interface Topicspublic CompletableFuture<Void> updatePartitionedTopicAsync(String topic, int numPartitions, boolean updateLocalTopicOnly, boolean force)
updatePartitionedTopicAsync in interface Topicspublic PartitionedTopicMetadata getPartitionedTopicMetadata(String topic) throws PulsarAdminException
getPartitionedTopicMetadata in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PartitionedTopicMetadata> getPartitionedTopicMetadataAsync(String topic)
getPartitionedTopicMetadataAsync in interface Topicspublic void deletePartitionedTopic(String topic) throws PulsarAdminException
deletePartitionedTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> deletePartitionedTopicAsync(String topic)
deletePartitionedTopicAsync in interface Topicspublic void deletePartitionedTopic(String topic, boolean force, boolean deleteSchema) throws PulsarAdminException
deletePartitionedTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> deletePartitionedTopicAsync(String topic, boolean force, boolean deleteSchema)
deletePartitionedTopicAsync in interface Topicspublic void delete(String topic) throws PulsarAdminException
delete in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> deleteAsync(String topic)
deleteAsync in interface Topicspublic void delete(String topic, boolean force, boolean deleteSchema) throws PulsarAdminException
delete in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> deleteAsync(String topic, boolean force, boolean deleteSchema)
deleteAsync in interface Topicspublic void unload(String topic) throws PulsarAdminException
unload in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> unloadAsync(String topic)
unloadAsync in interface Topicspublic org.apache.pulsar.client.api.MessageId terminateTopic(String topic) throws PulsarAdminException
terminateTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.client.api.MessageId> terminateTopicAsync(String topic)
terminateTopicAsync in interface Topicspublic List<String> getSubscriptions(String topic) throws PulsarAdminException
getSubscriptions in interface TopicsPulsarAdminExceptionpublic CompletableFuture<List<String>> getSubscriptionsAsync(String topic)
getSubscriptionsAsync in interface Topicspublic TopicStats getStats(String topic, boolean getPreciseBacklog, boolean subscriptionBacklogSize) throws PulsarAdminException
getStats in interface TopicsPulsarAdminExceptionpublic CompletableFuture<TopicStats> getStatsAsync(String topic, boolean getPreciseBacklog, boolean subscriptionBacklogSize)
getStatsAsync in interface Topicspublic PersistentTopicInternalStats getInternalStats(String topic) throws PulsarAdminException
getInternalStats in interface TopicsPulsarAdminExceptionpublic PersistentTopicInternalStats getInternalStats(String topic, boolean metadata) throws PulsarAdminException
getInternalStats in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PersistentTopicInternalStats> getInternalStatsAsync(String topic)
getInternalStatsAsync in interface Topicspublic CompletableFuture<PersistentTopicInternalStats> getInternalStatsAsync(String topic, boolean metadata)
getInternalStatsAsync in interface Topicspublic String getInternalInfo(String topic) throws PulsarAdminException
getInternalInfo in interface TopicsPulsarAdminExceptionpublic CompletableFuture<String> getInternalInfoAsync(String topic)
getInternalInfoAsync in interface Topicspublic PartitionedTopicStats getPartitionedStats(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize) throws PulsarAdminException
getPartitionedStats in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PartitionedTopicStats> getPartitionedStatsAsync(String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize)
getPartitionedStatsAsync in interface Topicspublic PartitionedTopicInternalStats getPartitionedInternalStats(String topic) throws PulsarAdminException
getPartitionedInternalStats in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PartitionedTopicInternalStats> getPartitionedInternalStatsAsync(String topic)
getPartitionedInternalStatsAsync in interface Topicspublic void deleteSubscription(String topic, String subName) throws PulsarAdminException
deleteSubscription in interface TopicsPulsarAdminExceptionpublic void deleteSubscription(String topic, String subName, boolean force) throws PulsarAdminException
deleteSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> deleteSubscriptionAsync(String topic, String subName)
deleteSubscriptionAsync in interface Topicspublic CompletableFuture<Void> deleteSubscriptionAsync(String topic, String subName, boolean force)
deleteSubscriptionAsync in interface Topicspublic void skipAllMessages(String topic, String subName) throws PulsarAdminException
skipAllMessages in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> skipAllMessagesAsync(String topic, String subName)
skipAllMessagesAsync in interface Topicspublic void skipMessages(String topic, String subName, long numMessages) throws PulsarAdminException
skipMessages in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> skipMessagesAsync(String topic, String subName, long numMessages)
skipMessagesAsync in interface Topicspublic void expireMessages(String topic, String subName, long expireTimeInSeconds) throws PulsarAdminException
expireMessages in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> expireMessagesAsync(String topic, String subName, long expireTimeInSeconds)
expireMessagesAsync in interface Topicspublic void expireMessages(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) throws PulsarAdminException
expireMessages in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> expireMessagesAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded)
expireMessagesAsync in interface Topicspublic void expireMessagesForAllSubscriptions(String topic, long expireTimeInSeconds) throws PulsarAdminException
expireMessagesForAllSubscriptions in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> expireMessagesForAllSubscriptionsAsync(String topic, long expireTimeInSeconds)
expireMessagesForAllSubscriptionsAsync in interface Topicspublic List<org.apache.pulsar.client.api.Message<byte[]>> peekMessages(String topic, String subName, int numMessages) throws PulsarAdminException
peekMessages in interface TopicsPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.client.api.Message<byte[]>>> peekMessagesAsync(String topic, String subName, int numMessages)
peekMessagesAsync in interface Topicspublic org.apache.pulsar.client.api.Message<byte[]> examineMessage(String topic, String initialPosition, long messagePosition) throws PulsarAdminException
examineMessage in interface TopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>> examineMessageAsync(String topic, String initialPosition, long messagePosition)
examineMessageAsync in interface Topicspublic void truncate(String topic) throws PulsarAdminException
truncate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> truncateAsync(String topic)
truncateAsync in interface Topicspublic CompletableFuture<org.apache.pulsar.client.api.Message<byte[]>> getMessageByIdAsync(String topic, long ledgerId, long entryId)
getMessageByIdAsync in interface Topicspublic org.apache.pulsar.client.api.Message<byte[]> getMessageById(String topic, long ledgerId, long entryId) throws PulsarAdminException
getMessageById in interface TopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.client.api.MessageId> getMessageIdByTimestampAsync(String topic, long timestamp)
getMessageIdByTimestampAsync in interface Topicspublic org.apache.pulsar.client.api.MessageId getMessageIdByTimestamp(String topic, long timestamp) throws PulsarAdminException
getMessageIdByTimestamp in interface TopicsPulsarAdminExceptionpublic void createSubscription(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException
createSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> createSubscriptionAsync(String topic, String subscriptionName, org.apache.pulsar.client.api.MessageId messageId)
createSubscriptionAsync in interface Topicspublic void resetCursor(String topic, String subName, long timestamp) throws PulsarAdminException
resetCursor in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> resetCursorAsync(String topic, String subName, long timestamp)
resetCursorAsync in interface Topicspublic void resetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException
resetCursor in interface TopicsPulsarAdminExceptionpublic void resetCursor(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded) throws PulsarAdminException
resetCursor in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId)
resetCursorAsync in interface Topicspublic CompletableFuture<Void> resetCursorAsync(String topic, String subName, org.apache.pulsar.client.api.MessageId messageId, boolean isExcluded)
resetCursorAsync in interface Topicspublic void triggerCompaction(String topic) throws PulsarAdminException
triggerCompaction in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> triggerCompactionAsync(String topic)
triggerCompactionAsync in interface Topicspublic LongRunningProcessStatus compactionStatus(String topic) throws PulsarAdminException
compactionStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<LongRunningProcessStatus> compactionStatusAsync(String topic)
compactionStatusAsync in interface Topicspublic void triggerOffload(String topic, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException
triggerOffload in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> triggerOffloadAsync(String topic, org.apache.pulsar.client.api.MessageId messageId)
triggerOffloadAsync in interface Topicspublic OffloadProcessStatus offloadStatus(String topic) throws PulsarAdminException
offloadStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<OffloadProcessStatus> offloadStatusAsync(String topic)
offloadStatusAsync in interface Topicspublic org.apache.pulsar.client.api.MessageId getLastMessageId(String topic) throws PulsarAdminException
getLastMessageId in interface TopicsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.client.api.MessageId> getLastMessageIdAsync(String topic)
getLastMessageIdAsync in interface Topicspublic Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic) throws PulsarAdminException
getBacklogQuotaMap in interface TopicsPulsarAdminExceptionpublic Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic, boolean applied) throws PulsarAdminException
getBacklogQuotaMap in interface TopicsPulsarAdminExceptionpublic Long getBacklogSizeByMessageId(String topic, org.apache.pulsar.client.api.MessageId messageId) throws PulsarAdminException
getBacklogSizeByMessageId in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Long> getBacklogSizeByMessageIdAsync(String topic, org.apache.pulsar.client.api.MessageId messageId)
getBacklogSizeByMessageIdAsync in interface Topicspublic void setBacklogQuota(String topic, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
setBacklogQuota in interface TopicsPulsarAdminExceptionpublic void removeBacklogQuota(String topic, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
removeBacklogQuota in interface TopicsPulsarAdminExceptionpublic Integer getMaxUnackedMessagesOnConsumer(String topic) throws PulsarAdminException
getMaxUnackedMessagesOnConsumer in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesOnConsumerAsync(String topic)
getMaxUnackedMessagesOnConsumerAsync in interface Topicspublic Integer getMaxUnackedMessagesOnConsumer(String topic, boolean applied) throws PulsarAdminException
getMaxUnackedMessagesOnConsumer in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesOnConsumerAsync(String topic, boolean applied)
getMaxUnackedMessagesOnConsumerAsync in interface Topicspublic CompletableFuture<Void> setMaxUnackedMessagesOnConsumerAsync(String topic, int maxNum)
setMaxUnackedMessagesOnConsumerAsync in interface Topicspublic void setMaxUnackedMessagesOnConsumer(String topic, int maxNum) throws PulsarAdminException
setMaxUnackedMessagesOnConsumer in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxUnackedMessagesOnConsumerAsync(String topic)
removeMaxUnackedMessagesOnConsumerAsync in interface Topicspublic void removeMaxUnackedMessagesOnConsumer(String topic) throws PulsarAdminException
removeMaxUnackedMessagesOnConsumer in interface TopicsPulsarAdminExceptionpublic InactiveTopicPolicies getInactiveTopicPolicies(String topic, boolean applied) throws PulsarAdminException
getInactiveTopicPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String topic, boolean applied)
getInactiveTopicPoliciesAsync in interface Topicspublic InactiveTopicPolicies getInactiveTopicPolicies(String topic) throws PulsarAdminException
getInactiveTopicPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String topic)
getInactiveTopicPoliciesAsync in interface Topicspublic CompletableFuture<Void> setInactiveTopicPoliciesAsync(String topic, InactiveTopicPolicies inactiveTopicPolicies)
setInactiveTopicPoliciesAsync in interface Topicspublic void setInactiveTopicPolicies(String topic, InactiveTopicPolicies inactiveTopicPolicies) throws PulsarAdminException
setInactiveTopicPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeInactiveTopicPoliciesAsync(String topic)
removeInactiveTopicPoliciesAsync in interface Topicspublic void removeInactiveTopicPolicies(String topic) throws PulsarAdminException
removeInactiveTopicPolicies in interface TopicsPulsarAdminExceptionpublic DelayedDeliveryPolicies getDelayedDeliveryPolicy(String topic, boolean applied) throws PulsarAdminException
getDelayedDeliveryPolicy in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryPolicyAsync(String topic, boolean applied)
getDelayedDeliveryPolicyAsync in interface Topicspublic DelayedDeliveryPolicies getDelayedDeliveryPolicy(String topic) throws PulsarAdminException
getDelayedDeliveryPolicy in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryPolicyAsync(String topic)
getDelayedDeliveryPolicyAsync in interface Topicspublic CompletableFuture<Void> removeDelayedDeliveryPolicyAsync(String topic)
removeDelayedDeliveryPolicyAsync in interface Topicspublic void removeDelayedDeliveryPolicy(String topic) throws PulsarAdminException
removeDelayedDeliveryPolicy in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setDelayedDeliveryPolicyAsync(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies)
setDelayedDeliveryPolicyAsync in interface Topicspublic void setDelayedDeliveryPolicy(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) throws PulsarAdminException
setDelayedDeliveryPolicy in interface TopicsPulsarAdminExceptionpublic Boolean getDeduplicationEnabled(String topic) throws PulsarAdminException
getDeduplicationEnabled in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Boolean> getDeduplicationEnabledAsync(String topic)
getDeduplicationEnabledAsync in interface Topicspublic Boolean getDeduplicationStatus(String topic) throws PulsarAdminException
getDeduplicationStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Boolean> getDeduplicationStatusAsync(String topic)
getDeduplicationStatusAsync in interface Topicspublic Boolean getDeduplicationStatus(String topic, boolean applied) throws PulsarAdminException
getDeduplicationStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Boolean> getDeduplicationStatusAsync(String topic, boolean applied)
getDeduplicationStatusAsync in interface Topicspublic void enableDeduplication(String topic, boolean enabled) throws PulsarAdminException
enableDeduplication in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> enableDeduplicationAsync(String topic, boolean enabled)
enableDeduplicationAsync in interface Topicspublic void setDeduplicationStatus(String topic, boolean enabled) throws PulsarAdminException
setDeduplicationStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setDeduplicationStatusAsync(String topic, boolean enabled)
setDeduplicationStatusAsync in interface Topicspublic void disableDeduplication(String topic) throws PulsarAdminException
disableDeduplication in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> disableDeduplicationAsync(String topic)
disableDeduplicationAsync in interface Topicspublic void removeDeduplicationStatus(String topic) throws PulsarAdminException
removeDeduplicationStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeDeduplicationStatusAsync(String topic)
removeDeduplicationStatusAsync in interface Topicspublic OffloadPolicies getOffloadPolicies(String topic) throws PulsarAdminException
getOffloadPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<OffloadPolicies> getOffloadPoliciesAsync(String topic)
getOffloadPoliciesAsync in interface Topicspublic OffloadPolicies getOffloadPolicies(String topic, boolean applied) throws PulsarAdminException
getOffloadPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<OffloadPolicies> getOffloadPoliciesAsync(String topic, boolean applied)
getOffloadPoliciesAsync in interface Topicspublic void setOffloadPolicies(String topic, OffloadPolicies offloadPolicies) throws PulsarAdminException
setOffloadPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setOffloadPoliciesAsync(String topic, OffloadPolicies offloadPolicies)
setOffloadPoliciesAsync in interface Topicspublic void removeOffloadPolicies(String topic) throws PulsarAdminException
removeOffloadPolicies in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeOffloadPoliciesAsync(String topic)
removeOffloadPoliciesAsync in interface Topicspublic Integer getMaxUnackedMessagesOnSubscription(String topic) throws PulsarAdminException
getMaxUnackedMessagesOnSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesOnSubscriptionAsync(String topic)
getMaxUnackedMessagesOnSubscriptionAsync in interface Topicspublic Integer getMaxUnackedMessagesOnSubscription(String topic, boolean applied) throws PulsarAdminException
getMaxUnackedMessagesOnSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesOnSubscriptionAsync(String topic, boolean applied)
getMaxUnackedMessagesOnSubscriptionAsync in interface Topicspublic void setMaxUnackedMessagesOnSubscription(String topic, int maxNum) throws PulsarAdminException
setMaxUnackedMessagesOnSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxUnackedMessagesOnSubscriptionAsync(String topic, int maxNum)
setMaxUnackedMessagesOnSubscriptionAsync in interface Topicspublic void removeMaxUnackedMessagesOnSubscription(String topic) throws PulsarAdminException
removeMaxUnackedMessagesOnSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxUnackedMessagesOnSubscriptionAsync(String topic)
removeMaxUnackedMessagesOnSubscriptionAsync in interface Topicspublic void setMessageTTL(String topic, int messageTTLInSecond) throws PulsarAdminException
setMessageTTL in interface TopicsPulsarAdminExceptionpublic Integer getMessageTTL(String topic) throws PulsarAdminException
getMessageTTL in interface TopicsPulsarAdminExceptionpublic Integer getMessageTTL(String topic, boolean applied) throws PulsarAdminException
getMessageTTL in interface TopicsPulsarAdminExceptionpublic void removeMessageTTL(String topic) throws PulsarAdminException
removeMessageTTL in interface TopicsPulsarAdminExceptionpublic void setRetention(String topic, RetentionPolicies retention) throws PulsarAdminException
setRetention in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setRetentionAsync(String topic, RetentionPolicies retention)
setRetentionAsync in interface Topicspublic RetentionPolicies getRetention(String topic) throws PulsarAdminException
getRetention in interface TopicsPulsarAdminExceptionpublic CompletableFuture<RetentionPolicies> getRetentionAsync(String topic)
getRetentionAsync in interface Topicspublic RetentionPolicies getRetention(String topic, boolean applied) throws PulsarAdminException
getRetention in interface TopicsPulsarAdminExceptionpublic CompletableFuture<RetentionPolicies> getRetentionAsync(String topic, boolean applied)
getRetentionAsync in interface Topicspublic void removeRetention(String topic) throws PulsarAdminException
removeRetention in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeRetentionAsync(String topic)
removeRetentionAsync in interface Topicspublic void setPersistence(String topic, PersistencePolicies persistencePolicies) throws PulsarAdminException
setPersistence in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setPersistenceAsync(String topic, PersistencePolicies persistencePolicies)
setPersistenceAsync in interface Topicspublic PersistencePolicies getPersistence(String topic) throws PulsarAdminException
getPersistence in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PersistencePolicies> getPersistenceAsync(String topic)
getPersistenceAsync in interface Topicspublic PersistencePolicies getPersistence(String topic, boolean applied) throws PulsarAdminException
getPersistence in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PersistencePolicies> getPersistenceAsync(String topic, boolean applied)
getPersistenceAsync in interface Topicspublic void removePersistence(String topic) throws PulsarAdminException
removePersistence in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removePersistenceAsync(String topic)
removePersistenceAsync in interface Topicspublic DispatchRate getDispatchRate(String topic, boolean applied) throws PulsarAdminException
getDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getDispatchRateAsync(String topic, boolean applied)
getDispatchRateAsync in interface Topicspublic DispatchRate getDispatchRate(String topic) throws PulsarAdminException
getDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getDispatchRateAsync(String topic)
getDispatchRateAsync in interface Topicspublic void setDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
setDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setDispatchRateAsync(String topic, DispatchRate dispatchRate)
setDispatchRateAsync in interface Topicspublic void removeDispatchRate(String topic) throws PulsarAdminException
removeDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeDispatchRateAsync(String topic)
removeDispatchRateAsync in interface Topicspublic DispatchRate getSubscriptionDispatchRate(String topic, boolean applied) throws PulsarAdminException
getSubscriptionDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic, boolean applied)
getSubscriptionDispatchRateAsync in interface Topicspublic DispatchRate getSubscriptionDispatchRate(String topic) throws PulsarAdminException
getSubscriptionDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic)
getSubscriptionDispatchRateAsync in interface Topicspublic void setSubscriptionDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
setSubscriptionDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionDispatchRateAsync(String topic, DispatchRate dispatchRate)
setSubscriptionDispatchRateAsync in interface Topicspublic void removeSubscriptionDispatchRate(String topic) throws PulsarAdminException
removeSubscriptionDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscriptionDispatchRateAsync(String topic)
removeSubscriptionDispatchRateAsync in interface Topicspublic Long getCompactionThreshold(String topic) throws PulsarAdminException
getCompactionThreshold in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Long> getCompactionThresholdAsync(String topic)
getCompactionThresholdAsync in interface Topicspublic Long getCompactionThreshold(String topic, boolean applied) throws PulsarAdminException
getCompactionThreshold in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Long> getCompactionThresholdAsync(String topic, boolean applied)
getCompactionThresholdAsync in interface Topicspublic void setCompactionThreshold(String topic, long compactionThreshold) throws PulsarAdminException
setCompactionThreshold in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setCompactionThresholdAsync(String topic, long compactionThreshold)
setCompactionThresholdAsync in interface Topicspublic void removeCompactionThreshold(String topic) throws PulsarAdminException
removeCompactionThreshold in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeCompactionThresholdAsync(String topic)
removeCompactionThresholdAsync in interface Topicspublic PublishRate getPublishRate(String topic) throws PulsarAdminException
getPublishRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<PublishRate> getPublishRateAsync(String topic)
getPublishRateAsync in interface Topicspublic void setPublishRate(String topic, PublishRate publishRate) throws PulsarAdminException
setPublishRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setPublishRateAsync(String topic, PublishRate publishRate)
setPublishRateAsync in interface Topicspublic void removePublishRate(String topic) throws PulsarAdminException
removePublishRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removePublishRateAsync(String topic)
removePublishRateAsync in interface Topicspublic Integer getMaxConsumersPerSubscription(String topic) throws PulsarAdminException
getMaxConsumersPerSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxConsumersPerSubscriptionAsync(String topic)
getMaxConsumersPerSubscriptionAsync in interface Topicspublic void setMaxConsumersPerSubscription(String topic, int maxConsumersPerSubscription) throws PulsarAdminException
setMaxConsumersPerSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxConsumersPerSubscriptionAsync(String topic, int maxConsumersPerSubscription)
setMaxConsumersPerSubscriptionAsync in interface Topicspublic void removeMaxConsumersPerSubscription(String topic) throws PulsarAdminException
removeMaxConsumersPerSubscription in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxConsumersPerSubscriptionAsync(String topic)
removeMaxConsumersPerSubscriptionAsync in interface Topicspublic Integer getMaxProducers(String topic) throws PulsarAdminException
getMaxProducers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxProducersAsync(String topic)
getMaxProducersAsync in interface Topicspublic Integer getMaxProducers(String topic, boolean applied) throws PulsarAdminException
getMaxProducers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxProducersAsync(String topic, boolean applied)
getMaxProducersAsync in interface Topicspublic void setMaxProducers(String topic, int maxProducers) throws PulsarAdminException
setMaxProducers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxProducersAsync(String topic, int maxProducers)
setMaxProducersAsync in interface Topicspublic void removeMaxProducers(String topic) throws PulsarAdminException
removeMaxProducers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxProducersAsync(String topic)
removeMaxProducersAsync in interface Topicspublic Integer getMaxSubscriptionsPerTopic(String topic) throws PulsarAdminException
getMaxSubscriptionsPerTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxSubscriptionsPerTopicAsync(String topic)
getMaxSubscriptionsPerTopicAsync in interface Topicspublic void setMaxSubscriptionsPerTopic(String topic, int maxSubscriptionsPerTopic) throws PulsarAdminException
setMaxSubscriptionsPerTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxSubscriptionsPerTopicAsync(String topic, int maxSubscriptionsPerTopic)
setMaxSubscriptionsPerTopicAsync in interface Topicspublic void removeMaxSubscriptionsPerTopic(String topic) throws PulsarAdminException
removeMaxSubscriptionsPerTopic in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxSubscriptionsPerTopicAsync(String topic)
removeMaxSubscriptionsPerTopicAsync in interface Topicspublic Integer getMaxMessageSize(String topic) throws PulsarAdminException
getMaxMessageSize in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxMessageSizeAsync(String topic)
getMaxMessageSizeAsync in interface Topicspublic void setMaxMessageSize(String topic, int maxMessageSize) throws PulsarAdminException
setMaxMessageSize in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxMessageSizeAsync(String topic, int maxMessageSize)
setMaxMessageSizeAsync in interface Topicspublic void removeMaxMessageSize(String topic) throws PulsarAdminException
removeMaxMessageSize in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxMessageSizeAsync(String topic)
removeMaxMessageSizeAsync in interface Topicspublic Integer getMaxConsumers(String topic) throws PulsarAdminException
getMaxConsumers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxConsumersAsync(String topic)
getMaxConsumersAsync in interface Topicspublic Integer getMaxConsumers(String topic, boolean applied) throws PulsarAdminException
getMaxConsumers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxConsumersAsync(String topic, boolean applied)
getMaxConsumersAsync in interface Topicspublic void setMaxConsumers(String topic, int maxConsumers) throws PulsarAdminException
setMaxConsumers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setMaxConsumersAsync(String topic, int maxConsumers)
setMaxConsumersAsync in interface Topicspublic void removeMaxConsumers(String topic) throws PulsarAdminException
removeMaxConsumers in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxConsumersAsync(String topic)
removeMaxConsumersAsync in interface Topicspublic Integer getDeduplicationSnapshotInterval(String topic) throws PulsarAdminException
getDeduplicationSnapshotInterval in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Integer> getDeduplicationSnapshotIntervalAsync(String topic)
getDeduplicationSnapshotIntervalAsync in interface Topicspublic void setDeduplicationSnapshotInterval(String topic, int interval) throws PulsarAdminException
setDeduplicationSnapshotInterval in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setDeduplicationSnapshotIntervalAsync(String topic, int interval)
setDeduplicationSnapshotIntervalAsync in interface Topicspublic void removeDeduplicationSnapshotInterval(String topic) throws PulsarAdminException
removeDeduplicationSnapshotInterval in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeDeduplicationSnapshotIntervalAsync(String topic)
removeDeduplicationSnapshotIntervalAsync in interface Topicspublic void setSubscriptionTypesEnabled(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) throws PulsarAdminException
setSubscriptionTypesEnabled in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionTypesEnabledAsync(String topic, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled)
setSubscriptionTypesEnabledAsync in interface Topicspublic Set<org.apache.pulsar.client.api.SubscriptionType> getSubscriptionTypesEnabled(String topic) throws PulsarAdminException
getSubscriptionTypesEnabled in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Set<org.apache.pulsar.client.api.SubscriptionType>> getSubscriptionTypesEnabledAsync(String topic)
getSubscriptionTypesEnabledAsync in interface Topicspublic DispatchRate getReplicatorDispatchRate(String topic) throws PulsarAdminException
getReplicatorDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String topic)
getReplicatorDispatchRateAsync in interface Topicspublic DispatchRate getReplicatorDispatchRate(String topic, boolean applied) throws PulsarAdminException
getReplicatorDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String topic, boolean applied)
getReplicatorDispatchRateAsync in interface Topicspublic void setReplicatorDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
setReplicatorDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setReplicatorDispatchRateAsync(String topic, DispatchRate dispatchRate)
setReplicatorDispatchRateAsync in interface Topicspublic void removeReplicatorDispatchRate(String topic) throws PulsarAdminException
removeReplicatorDispatchRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeReplicatorDispatchRateAsync(String topic)
removeReplicatorDispatchRateAsync in interface Topicspublic SubscribeRate getSubscribeRate(String topic) throws PulsarAdminException
getSubscribeRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<SubscribeRate> getSubscribeRateAsync(String topic)
getSubscribeRateAsync in interface Topicspublic SubscribeRate getSubscribeRate(String topic, boolean applied) throws PulsarAdminException
getSubscribeRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<SubscribeRate> getSubscribeRateAsync(String topic, boolean applied)
getSubscribeRateAsync in interface Topicspublic void setSubscribeRate(String topic, SubscribeRate subscribeRate) throws PulsarAdminException
setSubscribeRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setSubscribeRateAsync(String topic, SubscribeRate subscribeRate)
setSubscribeRateAsync in interface Topicspublic void removeSubscribeRate(String topic) throws PulsarAdminException
removeSubscribeRate in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscribeRateAsync(String topic)
removeSubscribeRateAsync in interface Topicspublic void setReplicatedSubscriptionStatus(String topic, String subName, boolean enabled) throws PulsarAdminException
setReplicatedSubscriptionStatus in interface TopicsPulsarAdminExceptionpublic CompletableFuture<Void> setReplicatedSubscriptionStatusAsync(String topic, String subName, boolean enabled)
setReplicatedSubscriptionStatusAsync in interface TopicsCopyright © 2017–2021 Apache Software Foundation. All rights reserved.