public interface TopicPolicies
| Modifier and Type | Method and Description |
|---|---|
Map<BacklogQuota.BacklogQuotaType,BacklogQuota> |
getBacklogQuotaMap(String topic)
Get backlog quota map for a topic.
|
Map<BacklogQuota.BacklogQuotaType,BacklogQuota> |
getBacklogQuotaMap(String topic,
boolean applied)
Get applied backlog quota map for a topic.
|
Long |
getCompactionThreshold(String topic)
Get the compactionThreshold for a topic.
|
Long |
getCompactionThreshold(String topic,
boolean applied)
Get the compactionThreshold for a topic.
|
CompletableFuture<Long> |
getCompactionThresholdAsync(String topic)
Get the compactionThreshold for a topic asynchronously.
|
CompletableFuture<Long> |
getCompactionThresholdAsync(String topic,
boolean applied)
Get the compactionThreshold for a topic asynchronously.
|
Integer |
getDeduplicationSnapshotInterval(String topic)
Get the deduplication snapshot interval for specified topic.
|
CompletableFuture<Integer> |
getDeduplicationSnapshotIntervalAsync(String topic)
Get the deduplication snapshot interval for specified topic asynchronously.
|
Boolean |
getDeduplicationStatus(String topic)
get deduplication enabled of a topic.
|
Boolean |
getDeduplicationStatus(String topic,
boolean applied)
get applied deduplication enabled of a topic.
|
CompletableFuture<Boolean> |
getDeduplicationStatusAsync(String topic)
get deduplication enabled of a topic asynchronously.
|
CompletableFuture<Boolean> |
getDeduplicationStatusAsync(String topic,
boolean applied)
get applied deduplication enabled of a topic asynchronously.
|
DelayedDeliveryPolicies |
getDelayedDeliveryPolicy(String topic)
Get the delayed delivery policy for a specified topic.
|
DelayedDeliveryPolicies |
getDelayedDeliveryPolicy(String topic,
boolean applied)
Get the delayed delivery policy applied for a specified topic.
|
CompletableFuture<DelayedDeliveryPolicies> |
getDelayedDeliveryPolicyAsync(String topic)
Get the delayed delivery policy for a specified topic asynchronously.
|
CompletableFuture<DelayedDeliveryPolicies> |
getDelayedDeliveryPolicyAsync(String topic,
boolean applied)
Get the delayed delivery policy applied for a specified topic asynchronously.
|
DispatchRate |
getDispatchRate(String topic)
Get message-dispatch-rate (topic can dispatch this many messages per second).
|
DispatchRate |
getDispatchRate(String topic,
boolean applied)
Get applied message-dispatch-rate (topic can dispatch this many messages per second).
|
CompletableFuture<DispatchRate> |
getDispatchRateAsync(String topic)
Get message-dispatch-rate asynchronously.
|
CompletableFuture<DispatchRate> |
getDispatchRateAsync(String topic,
boolean applied)
Get applied message-dispatch-rate asynchronously.
|
InactiveTopicPolicies |
getInactiveTopicPolicies(String topic)
get inactive topic policies of a topic.
|
InactiveTopicPolicies |
getInactiveTopicPolicies(String topic,
boolean applied)
Get inactive topic policies applied for a topic.
|
CompletableFuture<InactiveTopicPolicies> |
getInactiveTopicPoliciesAsync(String topic)
get inactive topic policies of a topic asynchronously.
|
CompletableFuture<InactiveTopicPolicies> |
getInactiveTopicPoliciesAsync(String topic,
boolean applied)
Get inactive topic policies applied for a topic asynchronously.
|
Integer |
getMaxConsumers(String topic)
Get the max number of consumer for specified topic.
|
Integer |
getMaxConsumers(String topic,
boolean applied)
Get the max number of consumer applied for specified topic.
|
CompletableFuture<Integer> |
getMaxConsumersAsync(String topic)
Get the max number of consumer for specified topic asynchronously.
|
CompletableFuture<Integer> |
getMaxConsumersAsync(String topic,
boolean applied)
Get the max number of consumer applied for specified topic asynchronously.
|
Integer |
getMaxConsumersPerSubscription(String topic)
Get the maxConsumersPerSubscription for a topic.
|
CompletableFuture<Integer> |
getMaxConsumersPerSubscriptionAsync(String topic)
Get the maxConsumersPerSubscription for a topic asynchronously.
|
Integer |
getMaxMessageSize(String topic)
Get the max message size for specified topic.
|
CompletableFuture<Integer> |
getMaxMessageSizeAsync(String topic)
Get the max message size for specified topic asynchronously.
|
Integer |
getMaxProducers(String topic)
Get the max number of producer for specified topic.
|
Integer |
getMaxProducers(String topic,
boolean applied)
Get the max number of producer applied for specified topic.
|
CompletableFuture<Integer> |
getMaxProducersAsync(String topic)
Get the max number of producer for specified topic asynchronously.
|
CompletableFuture<Integer> |
getMaxProducersAsync(String topic,
boolean applied)
Get the max number of producer applied for specified topic asynchronously.
|
Integer |
getMaxSubscriptionsPerTopic(String topic)
Get the max number of subscriptions for specified topic.
|
CompletableFuture<Integer> |
getMaxSubscriptionsPerTopicAsync(String topic)
Get the max number of subscriptions for specified topic asynchronously.
|
Integer |
getMaxUnackedMessagesOnConsumer(String topic)
Get max unacked messages on a consumer of a topic.
|
Integer |
getMaxUnackedMessagesOnConsumer(String topic,
boolean applied)
get applied max unacked messages on consumer of a topic.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesOnConsumerAsync(String topic)
get max unacked messages on consumer of a topic asynchronously.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesOnConsumerAsync(String topic,
boolean applied)
get applied max unacked messages on consumer of a topic asynchronously.
|
Integer |
getMaxUnackedMessagesOnSubscription(String topic)
get max unacked messages on subscription of a topic.
|
Integer |
getMaxUnackedMessagesOnSubscription(String topic,
boolean applied)
get max unacked messages on subscription of a topic.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesOnSubscriptionAsync(String topic)
get max unacked messages on subscription of a topic asynchronously.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesOnSubscriptionAsync(String topic,
boolean applied)
get max unacked messages on subscription of a topic asynchronously.
|
Integer |
getMessageTTL(String topic)
Get message TTL for a topic.
|
Integer |
getMessageTTL(String topic,
boolean applied)
Get message TTL applied for a topic.
|
OffloadPolicies |
getOffloadPolicies(String topic)
get offload policies of a topic.
|
OffloadPolicies |
getOffloadPolicies(String topic,
boolean applied)
get applied offload policies of a topic.
|
CompletableFuture<OffloadPolicies> |
getOffloadPoliciesAsync(String topic)
get offload policies of a topic asynchronously.
|
CompletableFuture<OffloadPolicies> |
getOffloadPoliciesAsync(String topic,
boolean applied)
get applied offload policies of a topic asynchronously.
|
PersistencePolicies |
getPersistence(String topic)
Get the configuration of persistence policies for specified topic.
|
PersistencePolicies |
getPersistence(String topic,
boolean applied)
Get the applied configuration of persistence policies for specified topic.
|
CompletableFuture<PersistencePolicies> |
getPersistenceAsync(String topic)
Get the configuration of persistence policies for specified topic asynchronously.
|
CompletableFuture<PersistencePolicies> |
getPersistenceAsync(String topic,
boolean applied)
Get the applied configuration of persistence policies for specified topic asynchronously.
|
PublishRate |
getPublishRate(String topic)
Get message-publish-rate (topics can publish this many messages per second).
|
CompletableFuture<PublishRate> |
getPublishRateAsync(String topic)
Get message-publish-rate (topics can publish this many messages per second) asynchronously.
|
DispatchRate |
getReplicatorDispatchRate(String topic)
Get replicatorDispatchRate for the topic.
|
DispatchRate |
getReplicatorDispatchRate(String topic,
boolean applied)
Get applied replicatorDispatchRate for the topic.
|
CompletableFuture<DispatchRate> |
getReplicatorDispatchRateAsync(String topic)
Get replicatorDispatchRate asynchronously.
|
CompletableFuture<DispatchRate> |
getReplicatorDispatchRateAsync(String topic,
boolean applied)
Get applied replicatorDispatchRate asynchronously.
|
RetentionPolicies |
getRetention(String topic)
Get the retention configuration for a topic.
|
RetentionPolicies |
getRetention(String topic,
boolean applied)
Get the applied retention configuration for a topic.
|
CompletableFuture<RetentionPolicies> |
getRetentionAsync(String topic)
Get the retention configuration for a topic asynchronously.
|
CompletableFuture<RetentionPolicies> |
getRetentionAsync(String topic,
boolean applied)
Get the applied retention configuration for a topic asynchronously.
|
SchemaCompatibilityStrategy |
getSchemaCompatibilityStrategy(String topic,
boolean applied)
Get schema compatibility strategy on a topic.
|
CompletableFuture<SchemaCompatibilityStrategy> |
getSchemaCompatibilityStrategyAsync(String topic,
boolean applied)
Get schema compatibility strategy on a topic asynchronously.
|
SubscribeRate |
getSubscribeRate(String topic)
Get topic-subscribe-rate (topics allow subscribe times per consumer in a period).
|
SubscribeRate |
getSubscribeRate(String topic,
boolean applied)
Get applied topic-subscribe-rate (topics allow subscribe times per consumer in a period).
|
CompletableFuture<SubscribeRate> |
getSubscribeRateAsync(String topic)
Get topic-subscribe-rate asynchronously.
|
CompletableFuture<SubscribeRate> |
getSubscribeRateAsync(String topic,
boolean applied)
Get applied topic-subscribe-rate asynchronously.
|
DispatchRate |
getSubscriptionDispatchRate(String topic)
Get subscription-message-dispatch-rate for the topic.
|
DispatchRate |
getSubscriptionDispatchRate(String topic,
boolean applied)
Get applied subscription-message-dispatch-rate.
|
CompletableFuture<DispatchRate> |
getSubscriptionDispatchRateAsync(String topic)
Get subscription-message-dispatch-rate asynchronously.
|
CompletableFuture<DispatchRate> |
getSubscriptionDispatchRateAsync(String topic,
boolean applied)
Get applied subscription-message-dispatch-rate asynchronously.
|
Set<SubscriptionType> |
getSubscriptionTypesEnabled(String topic)
Get is enable sub types.
|
CompletableFuture<Set<SubscriptionType>> |
getSubscriptionTypesEnabledAsync(String topic)
Get is enable sub types asynchronously.
|
default void |
removeBacklogQuota(String topic) |
void |
removeBacklogQuota(String topic,
BacklogQuota.BacklogQuotaType backlogQuotaType)
Remove a backlog quota policy from a topic.
|
void |
removeCompactionThreshold(String topic)
Remove the compactionThreshold for a topic.
|
CompletableFuture<Void> |
removeCompactionThresholdAsync(String topic)
Remove the compactionThreshold for a topic asynchronously.
|
void |
removeDeduplicationSnapshotInterval(String topic)
Remove the deduplication snapshot interval for specified topic.
|
CompletableFuture<Void> |
removeDeduplicationSnapshotIntervalAsync(String topic)
Remove the deduplication snapshot interval for specified topic asynchronously.
|
void |
removeDeduplicationStatus(String topic)
remove deduplication enabled of a topic.
|
CompletableFuture<Void> |
removeDeduplicationStatusAsync(String topic)
remove deduplication enabled of a topic asynchronously.
|
void |
removeDelayedDeliveryPolicy(String topic)
Remove the delayed delivery policy for a specified topic.
|
CompletableFuture<Void> |
removeDelayedDeliveryPolicyAsync(String topic)
Remove the delayed delivery policy for a specified topic asynchronously.
|
void |
removeDispatchRate(String topic)
Remove message-dispatch-rate.
|
CompletableFuture<Void> |
removeDispatchRateAsync(String topic)
Remove message-dispatch-rate asynchronously.
|
void |
removeInactiveTopicPolicies(String topic)
remove inactive topic policies of a topic.
|
CompletableFuture<Void> |
removeInactiveTopicPoliciesAsync(String topic)
remove inactive topic policies of a topic asynchronously.
|
void |
removeMaxConsumers(String topic)
Remove the max number of consumer for specified topic.
|
CompletableFuture<Void> |
removeMaxConsumersAsync(String topic)
Remove the max number of consumer for specified topic asynchronously.
|
void |
removeMaxConsumersPerSubscription(String topic)
Remove the maxConsumersPerSubscription for a topic.
|
CompletableFuture<Void> |
removeMaxConsumersPerSubscriptionAsync(String topic)
Remove the maxConsumersPerSubscription for a topic asynchronously.
|
void |
removeMaxMessageSize(String topic)
Remove the max message size for specified topic.
|
CompletableFuture<Void> |
removeMaxMessageSizeAsync(String topic)
Remove the max message size for specified topic asynchronously.
|
void |
removeMaxProducers(String topic)
Remove the max number of producer for specified topic.
|
CompletableFuture<Void> |
removeMaxProducersAsync(String topic)
Remove the max number of producer for specified topic asynchronously.
|
void |
removeMaxSubscriptionsPerTopic(String topic)
Remove the max number of subscriptions for specified topic.
|
CompletableFuture<Void> |
removeMaxSubscriptionsPerTopicAsync(String topic)
Remove the max number of subscriptions for specified topic asynchronously.
|
void |
removeMaxUnackedMessagesOnConsumer(String topic)
remove max unacked messages on consumer of a topic.
|
CompletableFuture<Void> |
removeMaxUnackedMessagesOnConsumerAsync(String topic)
remove max unacked messages on consumer of a topic asynchronously.
|
void |
removeMaxUnackedMessagesOnSubscription(String topic)
remove max unacked messages on subscription of a topic.
|
CompletableFuture<Void> |
removeMaxUnackedMessagesOnSubscriptionAsync(String topic)
remove max unacked messages on subscription of a topic asynchronously.
|
void |
removeMessageTTL(String topic)
Remove message TTL for a topic.
|
void |
removeOffloadPolicies(String topic)
remove offload policies of a topic.
|
CompletableFuture<Void> |
removeOffloadPoliciesAsync(String topic)
remove offload policies of a topic asynchronously.
|
void |
removePersistence(String topic)
Remove the configuration of persistence policies for specified topic.
|
CompletableFuture<Void> |
removePersistenceAsync(String topic)
Remove the configuration of persistence policies for specified topic asynchronously.
|
void |
removePublishRate(String topic)
Remove message-publish-rate.
|
CompletableFuture<Void> |
removePublishRateAsync(String topic)
Remove message-publish-rate asynchronously.
|
void |
removeReplicatorDispatchRate(String topic)
Remove replicatorDispatchRate for a topic.
|
CompletableFuture<Void> |
removeReplicatorDispatchRateAsync(String topic)
Remove replicatorDispatchRate for a topic asynchronously.
|
void |
removeRetention(String topic)
Remove the retention configuration for all the topics on a topic.
|
CompletableFuture<Void> |
removeRetentionAsync(String topic)
Remove the retention configuration for all the topics on a topic asynchronously.
|
void |
removeSchemaCompatibilityStrategy(String topic)
Remove schema compatibility strategy on a topic.
|
CompletableFuture<Void> |
removeSchemaCompatibilityStrategyAsync(String topic)
Remove schema compatibility strategy on a topic asynchronously.
|
void |
removeSubscribeRate(String topic)
Remove topic-subscribe-rate.
|
CompletableFuture<Void> |
removeSubscribeRateAsync(String topic)
Remove topic-subscribe-rate asynchronously.
|
void |
removeSubscriptionDispatchRate(String topic)
Remove subscription-message-dispatch-rate for a topic.
|
CompletableFuture<Void> |
removeSubscriptionDispatchRateAsync(String topic)
Remove subscription-message-dispatch-rate for a topic asynchronously.
|
void |
removeSubscriptionTypesEnabled(String topic)
Remove subscription types enabled for a topic.
|
CompletableFuture<Void> |
removeSubscriptionTypesEnabledAsync(String topic)
Remove subscription types enabled for a topic asynchronously.
|
default void |
setBacklogQuota(String topic,
BacklogQuota backlogQuota) |
void |
setBacklogQuota(String topic,
BacklogQuota backlogQuota,
BacklogQuota.BacklogQuotaType backlogQuotaType)
Set a backlog quota for a topic.
|
void |
setCompactionThreshold(String topic,
long compactionThreshold)
Set the compactionThreshold for a topic.
|
CompletableFuture<Void> |
setCompactionThresholdAsync(String topic,
long compactionThreshold)
Set the compactionThreshold for a topic asynchronously.
|
void |
setDeduplicationSnapshotInterval(String topic,
int interval)
Set the deduplication snapshot interval for specified topic.
|
CompletableFuture<Void> |
setDeduplicationSnapshotIntervalAsync(String topic,
int interval)
Set the deduplication snapshot interval for specified topic asynchronously.
|
void |
setDeduplicationStatus(String topic,
boolean enabled)
set deduplication enabled of a topic.
|
CompletableFuture<Void> |
setDeduplicationStatusAsync(String topic,
boolean enabled)
set deduplication enabled of a topic asynchronously.
|
void |
setDelayedDeliveryPolicy(String topic,
DelayedDeliveryPolicies delayedDeliveryPolicies)
Set the delayed delivery policy for a specified topic.
|
CompletableFuture<Void> |
setDelayedDeliveryPolicyAsync(String topic,
DelayedDeliveryPolicies delayedDeliveryPolicies)
Set the delayed delivery policy for a specified topic asynchronously.
|
void |
setDispatchRate(String topic,
DispatchRate dispatchRate)
Set message-dispatch-rate (topic can dispatch this many messages per second).
|
CompletableFuture<Void> |
setDispatchRateAsync(String topic,
DispatchRate dispatchRate)
Set message-dispatch-rate asynchronously.
|
void |
setInactiveTopicPolicies(String topic,
InactiveTopicPolicies inactiveTopicPolicies)
set inactive topic policies of a topic.
|
CompletableFuture<Void> |
setInactiveTopicPoliciesAsync(String topic,
InactiveTopicPolicies inactiveTopicPolicies)
set inactive topic policies of a topic asynchronously.
|
void |
setMaxConsumers(String topic,
int maxConsumers)
Set the max number of consumer for specified topic.
|
CompletableFuture<Void> |
setMaxConsumersAsync(String topic,
int maxConsumers)
Set the max number of consumer for specified topic asynchronously.
|
void |
setMaxConsumersPerSubscription(String topic,
int maxConsumersPerSubscription)
Set maxConsumersPerSubscription for a topic.
|
CompletableFuture<Void> |
setMaxConsumersPerSubscriptionAsync(String topic,
int maxConsumersPerSubscription)
Set maxConsumersPerSubscription for a topic asynchronously.
|
void |
setMaxMessageSize(String topic,
int maxMessageSize)
Set the max message size for specified topic.
|
CompletableFuture<Void> |
setMaxMessageSizeAsync(String topic,
int maxMessageSize)
Set the max message size for specified topic asynchronously.0 disables.
|
void |
setMaxProducers(String topic,
int maxProducers)
Set the max number of producer for specified topic.
|
CompletableFuture<Void> |
setMaxProducersAsync(String topic,
int maxProducers)
Set the max number of producer for specified topic asynchronously.
|
void |
setMaxSubscriptionsPerTopic(String topic,
int maxSubscriptionsPerTopic)
Set the max number of subscriptions for specified topic.
|
CompletableFuture<Void> |
setMaxSubscriptionsPerTopicAsync(String topic,
int maxSubscriptionsPerTopic)
Set the max number of subscriptions for specified topic asynchronously.
|
void |
setMaxUnackedMessagesOnConsumer(String topic,
int maxNum)
set max unacked messages on consumer of a topic.
|
CompletableFuture<Void> |
setMaxUnackedMessagesOnConsumerAsync(String topic,
int maxNum)
set max unacked messages on consumer of a topic asynchronously.
|
void |
setMaxUnackedMessagesOnSubscription(String topic,
int maxNum)
set max unacked messages on subscription of a topic.
|
CompletableFuture<Void> |
setMaxUnackedMessagesOnSubscriptionAsync(String topic,
int maxNum)
set max unacked messages on subscription of a topic asynchronously.
|
void |
setMessageTTL(String topic,
int messageTTLInSecond)
Set message TTL for a topic.
|
void |
setOffloadPolicies(String topic,
OffloadPolicies offloadPolicies)
set offload policies of a topic.
|
CompletableFuture<Void> |
setOffloadPoliciesAsync(String topic,
OffloadPolicies offloadPolicies)
set offload policies of a topic asynchronously.
|
void |
setPersistence(String topic,
PersistencePolicies persistencePolicies)
Set the configuration of persistence policies for specified topic.
|
CompletableFuture<Void> |
setPersistenceAsync(String topic,
PersistencePolicies persistencePolicies)
Set the configuration of persistence policies for specified topic asynchronously.
|
void |
setPublishRate(String topic,
PublishRate publishMsgRate)
Set message-publish-rate (topics can publish this many messages per second).
|
CompletableFuture<Void> |
setPublishRateAsync(String topic,
PublishRate publishMsgRate)
Set message-publish-rate (topics can publish this many messages per second) asynchronously.
|
void |
setReplicatorDispatchRate(String topic,
DispatchRate dispatchRate)
Set replicatorDispatchRate for the topic.
|
CompletableFuture<Void> |
setReplicatorDispatchRateAsync(String topic,
DispatchRate dispatchRate)
Set replicatorDispatchRate for the topic asynchronously.
|
void |
setRetention(String topic,
RetentionPolicies retention)
Set the retention configuration on a topic.
|
CompletableFuture<Void> |
setRetentionAsync(String topic,
RetentionPolicies retention)
Set the retention configuration for all the topics on a topic asynchronously.
|
void |
setSchemaCompatibilityStrategy(String topic,
SchemaCompatibilityStrategy strategy)
Set schema compatibility strategy on a topic.
|
CompletableFuture<Void> |
setSchemaCompatibilityStrategyAsync(String topic,
SchemaCompatibilityStrategy strategy)
Set schema compatibility strategy on a topic asynchronously.
|
void |
setSubscribeRate(String topic,
SubscribeRate subscribeRate)
Set topic-subscribe-rate (topic will limit by subscribeRate).
|
CompletableFuture<Void> |
setSubscribeRateAsync(String topic,
SubscribeRate subscribeRate)
Set topic-subscribe-rate (topics will limit by subscribeRate) asynchronously.
|
void |
setSubscriptionDispatchRate(String topic,
DispatchRate dispatchRate)
Set subscription-message-dispatch-rate for the topic.
|
CompletableFuture<Void> |
setSubscriptionDispatchRateAsync(String topic,
DispatchRate dispatchRate)
Set subscription-message-dispatch-rate for the topic asynchronously.
|
void |
setSubscriptionTypesEnabled(String topic,
Set<SubscriptionType> subscriptionTypesEnabled)
Set is enable sub types.
|
CompletableFuture<Void> |
setSubscriptionTypesEnabledAsync(String topic,
Set<SubscriptionType> subscriptionTypesEnabled)
Set is enable sub types asynchronously.
|
Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errorMap<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionvoid setBacklogQuota(String topic, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
topic - Topic namebacklogQuota - the new BacklogQuotabacklogQuotaType - PulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errordefault void setBacklogQuota(String topic, BacklogQuota backlogQuota) throws PulsarAdminException
PulsarAdminExceptionvoid removeBacklogQuota(String topic, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
topic - Topic namebacklogQuotaType - PulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errordefault void removeBacklogQuota(String topic) throws PulsarAdminException
PulsarAdminExceptionDelayedDeliveryPolicies getDelayedDeliveryPolicy(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryPolicyAsync(String topic, boolean applied)
topic - applied - DelayedDeliveryPolicies getDelayedDeliveryPolicy(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryPolicyAsync(String topic)
topic - void setDelayedDeliveryPolicy(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies) throws PulsarAdminException
topic - delayedDeliveryPolicies - PulsarAdminExceptionCompletableFuture<Void> setDelayedDeliveryPolicyAsync(String topic, DelayedDeliveryPolicies delayedDeliveryPolicies)
topic - delayedDeliveryPolicies - CompletableFuture<Void> removeDelayedDeliveryPolicyAsync(String topic)
topic - void removeDelayedDeliveryPolicy(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionvoid setMessageTTL(String topic, int messageTTLInSecond) throws PulsarAdminException
topic - Topic namemessageTTLInSecond - Message TTL in second.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errorInteger getMessageTTL(String topic) throws PulsarAdminException
topic - NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errorInteger getMessageTTL(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminExceptionvoid removeMessageTTL(String topic) throws PulsarAdminException
topic - NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existPulsarAdminException - Unexpected errorvoid setRetention(String topic, RetentionPolicies retention) throws PulsarAdminException
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existConflictException - Concurrent modificationPulsarAdminException - Unexpected errorCompletableFuture<Void> setRetentionAsync(String topic, RetentionPolicies retention)
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
topic - Topic nameRetentionPolicies getRetention(String topic) throws PulsarAdminException
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existConflictException - Concurrent modificationPulsarAdminException - Unexpected errorCompletableFuture<RetentionPolicies> getRetentionAsync(String topic)
topic - Topic nameRetentionPolicies getRetention(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<RetentionPolicies> getRetentionAsync(String topic, boolean applied)
topic - applied - void removeRetention(String topic) throws PulsarAdminException
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Topic does not existConflictException - Concurrent modificationPulsarAdminException - Unexpected errorCompletableFuture<Void> removeRetentionAsync(String topic)
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
topic - Topic nameInteger getMaxUnackedMessagesOnConsumer(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Integer> getMaxUnackedMessagesOnConsumerAsync(String topic)
topic - Integer getMaxUnackedMessagesOnConsumer(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<Integer> getMaxUnackedMessagesOnConsumerAsync(String topic, boolean applied)
topic - applied - void setMaxUnackedMessagesOnConsumer(String topic, int maxNum) throws PulsarAdminException
topic - maxNum - PulsarAdminExceptionCompletableFuture<Void> setMaxUnackedMessagesOnConsumerAsync(String topic, int maxNum)
topic - maxNum - void removeMaxUnackedMessagesOnConsumer(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeMaxUnackedMessagesOnConsumerAsync(String topic)
topic - InactiveTopicPolicies getInactiveTopicPolicies(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String topic, boolean applied)
topic - applied - InactiveTopicPolicies getInactiveTopicPolicies(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String topic)
topic - void setInactiveTopicPolicies(String topic, InactiveTopicPolicies inactiveTopicPolicies) throws PulsarAdminException
topic - inactiveTopicPolicies - PulsarAdminExceptionCompletableFuture<Void> setInactiveTopicPoliciesAsync(String topic, InactiveTopicPolicies inactiveTopicPolicies)
topic - inactiveTopicPolicies - void removeInactiveTopicPolicies(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeInactiveTopicPoliciesAsync(String topic)
topic - OffloadPolicies getOffloadPolicies(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<OffloadPolicies> getOffloadPoliciesAsync(String topic)
topic - OffloadPolicies getOffloadPolicies(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<OffloadPolicies> getOffloadPoliciesAsync(String topic, boolean applied)
topic - void setOffloadPolicies(String topic, OffloadPolicies offloadPolicies) throws PulsarAdminException
topic - offloadPolicies - PulsarAdminExceptionCompletableFuture<Void> setOffloadPoliciesAsync(String topic, OffloadPolicies offloadPolicies)
topic - offloadPolicies - void removeOffloadPolicies(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeOffloadPoliciesAsync(String topic)
topic - Integer getMaxUnackedMessagesOnSubscription(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Integer> getMaxUnackedMessagesOnSubscriptionAsync(String topic)
topic - Integer getMaxUnackedMessagesOnSubscription(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Integer> getMaxUnackedMessagesOnSubscriptionAsync(String topic, boolean applied)
topic - void setMaxUnackedMessagesOnSubscription(String topic, int maxNum) throws PulsarAdminException
topic - maxNum - PulsarAdminExceptionCompletableFuture<Void> setMaxUnackedMessagesOnSubscriptionAsync(String topic, int maxNum)
topic - maxNum - void removeMaxUnackedMessagesOnSubscription(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeMaxUnackedMessagesOnSubscriptionAsync(String topic)
topic - void setPersistence(String topic, PersistencePolicies persistencePolicies) throws PulsarAdminException
topic - Topic namepersistencePolicies - Configuration of bookkeeper persistence policiesPulsarAdminException - Unexpected errorCompletableFuture<Void> setPersistenceAsync(String topic, PersistencePolicies persistencePolicies)
topic - Topic namepersistencePolicies - Configuration of bookkeeper persistence policiesPersistencePolicies getPersistence(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<PersistencePolicies> getPersistenceAsync(String topic)
topic - Topic namePersistencePolicies getPersistence(String topic, boolean applied) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<PersistencePolicies> getPersistenceAsync(String topic, boolean applied)
topic - Topic namevoid removePersistence(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removePersistenceAsync(String topic)
topic - Topic nameBoolean getDeduplicationStatus(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Boolean> getDeduplicationStatusAsync(String topic)
topic - Boolean getDeduplicationStatus(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Boolean> getDeduplicationStatusAsync(String topic, boolean applied)
topic - void setDeduplicationStatus(String topic, boolean enabled) throws PulsarAdminException
topic - enabled - PulsarAdminExceptionCompletableFuture<Void> setDeduplicationStatusAsync(String topic, boolean enabled)
topic - enabled - void removeDeduplicationStatus(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeDeduplicationStatusAsync(String topic)
topic - void setDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
topic - dispatchRate - number of messages per secondPulsarAdminException - Unexpected errorCompletableFuture<Void> setDispatchRateAsync(String topic, DispatchRate dispatchRate)
topic - dispatchRate - number of messages per secondDispatchRate getDispatchRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<DispatchRate> getDispatchRateAsync(String topic)
topic - DispatchRate getDispatchRate(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<DispatchRate> getDispatchRateAsync(String topic, boolean applied)
topic - void removeDispatchRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorCompletableFuture<Void> removeDispatchRateAsync(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorvoid setSubscriptionDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
topic - dispatchRate - number of messages per secondPulsarAdminException - Unexpected errorCompletableFuture<Void> setSubscriptionDispatchRateAsync(String topic, DispatchRate dispatchRate)
topic - dispatchRate - number of messages per secondDispatchRate getSubscriptionDispatchRate(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic, boolean applied)
topic - DispatchRate getSubscriptionDispatchRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String topic)
topic - void removeSubscriptionDispatchRate(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeSubscriptionDispatchRateAsync(String topic)
topic - Topic namevoid setReplicatorDispatchRate(String topic, DispatchRate dispatchRate) throws PulsarAdminException
topic - dispatchRate - number of messages per secondPulsarAdminException - Unexpected errorCompletableFuture<Void> setReplicatorDispatchRateAsync(String topic, DispatchRate dispatchRate)
topic - dispatchRate - number of messages per secondDispatchRate getReplicatorDispatchRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String topic)
topic - DispatchRate getReplicatorDispatchRate(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String topic, boolean applied)
topic - applied - void removeReplicatorDispatchRate(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeReplicatorDispatchRateAsync(String topic)
topic - Topic nameLong getCompactionThreshold(String topic) throws PulsarAdminException
10000000
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorCompletableFuture<Long> getCompactionThresholdAsync(String topic)
10000000
topic - Topic nameLong getCompactionThreshold(String topic, boolean applied) throws PulsarAdminException
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorCompletableFuture<Long> getCompactionThresholdAsync(String topic, boolean applied)
topic - Topic namevoid setCompactionThreshold(String topic, long compactionThreshold) throws PulsarAdminException
10000000
topic - Topic namecompactionThreshold - maximum number of backlog bytes before compaction is triggeredNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorCompletableFuture<Void> setCompactionThresholdAsync(String topic, long compactionThreshold)
10000000
topic - Topic namecompactionThreshold - maximum number of backlog bytes before compaction is triggeredvoid removeCompactionThreshold(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeCompactionThresholdAsync(String topic)
topic - Topic namevoid setPublishRate(String topic, PublishRate publishMsgRate) throws PulsarAdminException
topic - publishMsgRate - number of messages per secondPulsarAdminException - Unexpected errorCompletableFuture<Void> setPublishRateAsync(String topic, PublishRate publishMsgRate)
topic - publishMsgRate - number of messages per secondPublishRate getPublishRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<PublishRate> getPublishRateAsync(String topic)
topic - void removePublishRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorCompletableFuture<Void> removePublishRateAsync(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorInteger getMaxConsumersPerSubscription(String topic) throws PulsarAdminException
0
topic - Topic nameNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorCompletableFuture<Integer> getMaxConsumersPerSubscriptionAsync(String topic)
0
topic - Topic namevoid setMaxConsumersPerSubscription(String topic, int maxConsumersPerSubscription) throws PulsarAdminException
10
topic - Topic namemaxConsumersPerSubscription - maxConsumersPerSubscription value for a namespaceNotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorCompletableFuture<Void> setMaxConsumersPerSubscriptionAsync(String topic, int maxConsumersPerSubscription)
10
topic - Topic namemaxConsumersPerSubscription - maxConsumersPerSubscription value for a namespacevoid removeMaxConsumersPerSubscription(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeMaxConsumersPerSubscriptionAsync(String topic)
topic - Topic nameInteger getMaxProducers(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Integer> getMaxProducersAsync(String topic)
topic - Topic namePulsarAdminException - Unexpected errorInteger getMaxProducers(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<Integer> getMaxProducersAsync(String topic, boolean applied)
topic - applied - void setMaxProducers(String topic, int maxProducers) throws PulsarAdminException
topic - Topic namemaxProducers - Max number of producerPulsarAdminException - Unexpected errorCompletableFuture<Void> setMaxProducersAsync(String topic, int maxProducers)
topic - Topic namemaxProducers - Max number of producerPulsarAdminException - Unexpected errorvoid removeMaxProducers(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeMaxProducersAsync(String topic)
topic - Topic nameInteger getMaxSubscriptionsPerTopic(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Integer> getMaxSubscriptionsPerTopicAsync(String topic)
topic - Topic namePulsarAdminException - Unexpected errorvoid setMaxSubscriptionsPerTopic(String topic, int maxSubscriptionsPerTopic) throws PulsarAdminException
topic - Topic namemaxSubscriptionsPerTopic - Max number of subscriptionsPulsarAdminException - Unexpected errorCompletableFuture<Void> setMaxSubscriptionsPerTopicAsync(String topic, int maxSubscriptionsPerTopic)
topic - Topic namemaxSubscriptionsPerTopic - Max number of subscriptionsPulsarAdminException - Unexpected errorvoid removeMaxSubscriptionsPerTopic(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeMaxSubscriptionsPerTopicAsync(String topic)
topic - Topic nameInteger getMaxMessageSize(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Integer> getMaxMessageSizeAsync(String topic)
topic - Topic namePulsarAdminException - Unexpected errorvoid setMaxMessageSize(String topic, int maxMessageSize) throws PulsarAdminException
topic - Topic namemaxMessageSize - Max message size of producerPulsarAdminException - Unexpected errorCompletableFuture<Void> setMaxMessageSizeAsync(String topic, int maxMessageSize)
topic - Topic namemaxMessageSize - Max message size of topicPulsarAdminException - Unexpected errorvoid removeMaxMessageSize(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeMaxMessageSizeAsync(String topic)
topic - Topic nameInteger getMaxConsumers(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Integer> getMaxConsumersAsync(String topic)
topic - Topic namePulsarAdminException - Unexpected errorInteger getMaxConsumers(String topic, boolean applied) throws PulsarAdminException
topic - applied - PulsarAdminExceptionCompletableFuture<Integer> getMaxConsumersAsync(String topic, boolean applied)
topic - applied - void setMaxConsumers(String topic, int maxConsumers) throws PulsarAdminException
topic - Topic namemaxConsumers - Max number of consumerPulsarAdminException - Unexpected errorCompletableFuture<Void> setMaxConsumersAsync(String topic, int maxConsumers)
topic - Topic namemaxConsumers - Max number of consumerPulsarAdminException - Unexpected errorvoid removeMaxConsumers(String topic) throws PulsarAdminException
topic - Topic namePulsarAdminException - Unexpected errorCompletableFuture<Void> removeMaxConsumersAsync(String topic)
topic - Topic nameInteger getDeduplicationSnapshotInterval(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Integer> getDeduplicationSnapshotIntervalAsync(String topic)
topic - void setDeduplicationSnapshotInterval(String topic, int interval) throws PulsarAdminException
topic - interval - PulsarAdminExceptionCompletableFuture<Void> setDeduplicationSnapshotIntervalAsync(String topic, int interval)
topic - interval - void removeDeduplicationSnapshotInterval(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeDeduplicationSnapshotIntervalAsync(String topic)
topic - void setSubscriptionTypesEnabled(String topic, Set<SubscriptionType> subscriptionTypesEnabled) throws PulsarAdminException
topic - subscriptionTypesEnabled - is enable subTypesPulsarAdminException - Unexpected errorCompletableFuture<Void> setSubscriptionTypesEnabledAsync(String topic, Set<SubscriptionType> subscriptionTypesEnabled)
topic - subscriptionTypesEnabled - is enable subTypesSet<SubscriptionType> getSubscriptionTypesEnabled(String topic) throws PulsarAdminException
topic - is topic for get is enable sub typesPulsarAdminException - Unexpected errorCompletableFuture<Set<SubscriptionType>> getSubscriptionTypesEnabledAsync(String topic)
topic - is topic for get is enable sub typesvoid removeSubscriptionTypesEnabled(String topic) throws PulsarAdminException
topic - PulsarAdminExceptionCompletableFuture<Void> removeSubscriptionTypesEnabledAsync(String topic)
topic - void setSubscribeRate(String topic, SubscribeRate subscribeRate) throws PulsarAdminException
topic - subscribeRate - consumer subscribe limit by this subscribeRatePulsarAdminException - Unexpected errorCompletableFuture<Void> setSubscribeRateAsync(String topic, SubscribeRate subscribeRate)
topic - subscribeRate - consumer subscribe limit by this subscribeRateSubscribeRate getSubscribeRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<SubscribeRate> getSubscribeRateAsync(String topic)
topic - SubscribeRate getSubscribeRate(String topic, boolean applied) throws PulsarAdminException
topic - PulsarAdminException - Unexpected errorCompletableFuture<SubscribeRate> getSubscribeRateAsync(String topic, boolean applied)
topic - void removeSubscribeRate(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorCompletableFuture<Void> removeSubscribeRateAsync(String topic) throws PulsarAdminException
topic - PulsarAdminException - unexpected errorSchemaCompatibilityStrategy getSchemaCompatibilityStrategy(String topic, boolean applied) throws PulsarAdminException
topic - The topic in whose policy we are interestedapplied - Get the current applied schema compatibility strategyPulsarAdminExceptionCompletableFuture<SchemaCompatibilityStrategy> getSchemaCompatibilityStrategyAsync(String topic, boolean applied)
topic - The topic in whose policy we are interestedapplied - Get the current applied schema compatibility strategyvoid setSchemaCompatibilityStrategy(String topic, SchemaCompatibilityStrategy strategy) throws PulsarAdminException
topic - The topic in whose policy should be setstrategy - The schema compatibility strategyPulsarAdminExceptionCompletableFuture<Void> setSchemaCompatibilityStrategyAsync(String topic, SchemaCompatibilityStrategy strategy)
topic - The topic in whose policy should be setstrategy - The schema compatibility strategyvoid removeSchemaCompatibilityStrategy(String topic) throws PulsarAdminException
topic - The topic in whose policy should be removedPulsarAdminExceptionCompletableFuture<Void> removeSchemaCompatibilityStrategyAsync(String topic)
topic - The topic in whose policy should be removedCopyright © 2017–2022 Apache Software Foundation. All rights reserved.