public class NamespacesImpl extends BaseResource implements Namespaces
auth, readTimeoutMs| Constructor and Description |
|---|
NamespacesImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearNamespaceBacklog(String namespace)
Clear backlog for all topics on a namespace.
|
CompletableFuture<Void> |
clearNamespaceBacklogAsync(String namespace)
Clear backlog for all topics on a namespace asynchronously.
|
void |
clearNamespaceBacklogForSubscription(String namespace,
String subscription)
Clear backlog for a given subscription on all topics on a namespace.
|
CompletableFuture<Void> |
clearNamespaceBacklogForSubscriptionAsync(String namespace,
String subscription)
Clear backlog for a given subscription on all topics on a namespace asynchronously.
|
void |
clearNamespaceBundleBacklog(String namespace,
String bundle)
Clear backlog for all topics on a namespace bundle.
|
CompletableFuture<Void> |
clearNamespaceBundleBacklogAsync(String namespace,
String bundle)
Clear backlog for all topics on a namespace bundle asynchronously.
|
void |
clearNamespaceBundleBacklogForSubscription(String namespace,
String bundle,
String subscription)
Clear backlog for a given subscription on all topics on a namespace bundle.
|
CompletableFuture<Void> |
clearNamespaceBundleBacklogForSubscriptionAsync(String namespace,
String bundle,
String subscription)
Clear backlog for a given subscription on all topics on a namespace bundle asynchronously.
|
void |
clearOffloadDeleteLag(String namespace)
Clear the offload deletion lag for a namespace.
|
CompletableFuture<Void> |
clearOffloadDeleteLagAsync(String namespace)
Clear the offload deletion lag for a namespace asynchronously.
|
void |
createNamespace(String namespace)
Create a new namespace.
|
void |
createNamespace(String namespace,
org.apache.pulsar.common.policies.data.BundlesData bundlesData)
Create a new namespace.
|
void |
createNamespace(String namespace,
int numBundles)
Create a new namespace.
|
void |
createNamespace(String namespace,
org.apache.pulsar.common.policies.data.Policies policies)
Create a new namespace.
|
void |
createNamespace(String namespace,
Set<String> clusters)
Create a new namespace.
|
CompletableFuture<Void> |
createNamespaceAsync(String namespace)
Create a new namespace asynchronously.
|
CompletableFuture<Void> |
createNamespaceAsync(String namespace,
org.apache.pulsar.common.policies.data.BundlesData bundlesData)
Create a new namespace asynchronously.
|
CompletableFuture<Void> |
createNamespaceAsync(String namespace,
int numBundles)
Create a new namespace.
|
CompletableFuture<Void> |
createNamespaceAsync(String namespace,
org.apache.pulsar.common.policies.data.Policies policies)
Create a new namespace asynchronously.
|
CompletableFuture<Void> |
createNamespaceAsync(String namespace,
Set<String> clusters)
Create a new namespace asynchronously.
|
void |
deleteBookieAffinityGroup(String namespace)
Delete bookie affinity group configured for a namespace.
|
CompletableFuture<Void> |
deleteBookieAffinityGroupAsync(String namespace)
Delete bookie affinity group configured for a namespace asynchronously.
|
void |
deleteNamespace(String namespace)
Delete an existing namespace.
|
void |
deleteNamespace(String namespace,
boolean force)
Delete an existing namespace.
|
void |
deleteNamespaceAntiAffinityGroup(String namespace)
Delete anti-affinity group name for a namespace.
|
CompletableFuture<Void> |
deleteNamespaceAntiAffinityGroupAsync(String namespace)
Delete anti-affinity group name for a namespace.
|
CompletableFuture<Void> |
deleteNamespaceAsync(String namespace)
Delete an existing namespace asynchronously.
|
CompletableFuture<Void> |
deleteNamespaceAsync(String namespace,
boolean force)
Delete an existing namespace asynchronously.
|
void |
deleteNamespaceBundle(String namespace,
String bundleRange)
Delete an existing bundle in a namespace.
|
void |
deleteNamespaceBundle(String namespace,
String bundleRange,
boolean force)
Delete an existing bundle in a namespace.
|
CompletableFuture<Void> |
deleteNamespaceBundleAsync(String namespace,
String bundleRange)
Delete an existing bundle in a namespace asynchronously.
|
CompletableFuture<Void> |
deleteNamespaceBundleAsync(String namespace,
String bundleRange,
boolean force)
Delete an existing bundle in a namespace asynchronously.
|
List<String> |
getAntiAffinityNamespaces(String tenant,
String cluster,
String namespaceAntiAffinityGroup)
Get all namespaces that grouped with given anti-affinity group.
|
CompletableFuture<List<String>> |
getAntiAffinityNamespacesAsync(String tenant,
String cluster,
String namespaceAntiAffinityGroup)
Get all namespaces that grouped with given anti-affinity group asynchronously.
|
Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota> |
getBacklogQuotaMap(String namespace)
Get backlog quota map on a namespace.
|
CompletableFuture<Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota>> |
getBacklogQuotaMapAsync(String namespace)
Get backlog quota map on a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.BookieAffinityGroupData |
getBookieAffinityGroup(String namespace)
Get bookie affinity group configured for a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.BookieAffinityGroupData> |
getBookieAffinityGroupAsync(String namespace)
Get bookie affinity group configured for a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.BundlesData |
getBundles(String namespace)
Get the list of bundles.
|
CompletableFuture<org.apache.pulsar.common.policies.data.BundlesData> |
getBundlesAsync(String namespace)
Get the list of bundles asynchronously.
|
long |
getCompactionThreshold(String namespace)
Get the compactionThreshold for a namespace.
|
CompletableFuture<Long> |
getCompactionThresholdAsync(String namespace)
Get the compactionThreshold for a namespace asynchronously.
|
Integer |
getDeduplicationSnapshotInterval(String namespace)
Get the deduplicationSnapshotInterval for a namespace.
|
CompletableFuture<Integer> |
getDeduplicationSnapshotIntervalAsync(String namespace)
Get the deduplicationSnapshotInterval for a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies |
getDelayedDelivery(String namespace)
Get the delayed delivery messages for all topics within a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies> |
getDelayedDeliveryAsync(String namespace)
Get the delayed delivery messages for all topics within a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.DispatchRate |
getDispatchRate(String namespace)
Get message-dispatch-rate (topics under this namespace can dispatch this many messages per second).
|
CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> |
getDispatchRateAsync(String namespace)
Get message-dispatch-rate asynchronously.
|
org.apache.pulsar.common.policies.data.InactiveTopicPolicies |
getInactiveTopicPolicies(String namespace)
Get the inactive deletion strategy for all topics within a namespace synchronously.
|
CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> |
getInactiveTopicPoliciesAsync(String namespace)
Get the inactive deletion strategy for all topics within a namespace asynchronously.
|
boolean |
getIsAllowAutoUpdateSchema(String namespace)
Get whether allow auto update schema.
|
CompletableFuture<Boolean> |
getIsAllowAutoUpdateSchemaAsync(String namespace)
Get whether allow auto update schema asynchronously.
|
int |
getMaxConsumersPerSubscription(String namespace)
Get the maxConsumersPerSubscription for a namespace.
|
CompletableFuture<Integer> |
getMaxConsumersPerSubscriptionAsync(String namespace)
Get the maxConsumersPerSubscription for a namespace asynchronously.
|
int |
getMaxConsumersPerTopic(String namespace)
Get the maxProducersPerTopic for a namespace.
|
CompletableFuture<Integer> |
getMaxConsumersPerTopicAsync(String namespace)
Get the maxProducersPerTopic for a namespace asynchronously.
|
Integer |
getMaxProducersPerTopic(String namespace)
Get the maxProducersPerTopic for a namespace.
|
CompletableFuture<Integer> |
getMaxProducersPerTopicAsync(String namespace)
Get the maxProducersPerTopic for a namespace asynchronously.
|
Integer |
getMaxSubscriptionsPerTopic(String namespace)
Get the maxSubscriptionsPerTopic for a namespace.
|
CompletableFuture<Integer> |
getMaxSubscriptionsPerTopicAsync(String namespace)
Get the maxSubscriptionsPerTopic for a namespace asynchronously.
|
int |
getMaxUnackedMessagesPerConsumer(String namespace)
Get the maxUnackedMessagesPerConsumer for a namespace.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesPerConsumerAsync(String namespace)
Get the maxUnackedMessagesPerConsumer for a namespace asynchronously.
|
int |
getMaxUnackedMessagesPerSubscription(String namespace)
Get the maxUnackedMessagesPerSubscription for a namespace.
|
CompletableFuture<Integer> |
getMaxUnackedMessagesPerSubscriptionAsync(String namespace)
Get the maxUnackedMessagesPerSubscription for a namespace asynchronously.
|
String |
getNamespaceAntiAffinityGroup(String namespace)
Get anti-affinity group name for a namespace.
|
CompletableFuture<String> |
getNamespaceAntiAffinityGroupAsync(String namespace)
Get anti-affinity group name for a namespace asynchronously.
|
int |
getNamespaceMessageTTL(String namespace)
Get the message TTL for a namespace.
|
CompletableFuture<Integer> |
getNamespaceMessageTTLAsync(String namespace)
Get the message TTL for a namespace asynchronously.
|
List<String> |
getNamespaceReplicationClusters(String namespace)
Get the replication clusters for a namespace.
|
CompletableFuture<List<String>> |
getNamespaceReplicationClustersAsync(String namespace)
Get the replication clusters for a namespace asynchronously.
|
List<String> |
getNamespaces(String tenant)
Get the list of namespaces.
|
List<String> |
getNamespaces(String tenant,
String cluster)
Get the list of namespaces.
|
CompletableFuture<List<String>> |
getNamespacesAsync(String tenant)
Get the list of namespaces asynchronously.
|
Long |
getOffloadDeleteLagMs(String namespace)
Get the offload deletion lag for a namespace, in milliseconds.
|
CompletableFuture<Long> |
getOffloadDeleteLagMsAsync(String namespace)
Get the offload deletion lag asynchronously for a namespace, in milliseconds.
|
org.apache.pulsar.common.policies.data.OffloadPolicies |
getOffloadPolicies(String namespace)
Get the offload configuration for a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.OffloadPolicies> |
getOffloadPoliciesAsync(String namespace)
Get the offload configuration for a namespace asynchronously.
|
long |
getOffloadThreshold(String namespace)
Get the offloadThreshold for a namespace.
|
CompletableFuture<Long> |
getOffloadThresholdAsync(String namespace)
Get the offloadThreshold for a namespace asynchronously.
|
Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> |
getPermissions(String namespace)
Get permissions on a namespace.
|
CompletableFuture<Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>>> |
getPermissionsAsync(String namespace)
Get permissions on a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.PersistencePolicies |
getPersistence(String namespace)
Get the persistence configuration for a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.PersistencePolicies> |
getPersistenceAsync(String namespace)
Get the persistence configuration for a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.Policies |
getPolicies(String namespace)
Get policies for a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.Policies> |
getPoliciesAsync(String namespace)
Get policies for a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.PublishRate |
getPublishRate(String namespace)
Get message-publish-rate (topics under this namespace can publish this many messages per second).
|
CompletableFuture<org.apache.pulsar.common.policies.data.PublishRate> |
getPublishRateAsync(String namespace)
Get message-publish-rate (topics under this namespace can publish this many messages per second) asynchronously.
|
String |
getReplicationConfigVersion(String namespace)
Get the replication configuration version for a given namespace.
|
CompletableFuture<String> |
getReplicationConfigVersionAsync(String namespace)
Get the replication configuration version for a given namespace asynchronously.
|
org.apache.pulsar.common.policies.data.DispatchRate |
getReplicatorDispatchRate(String namespace)
Get replicator-message-dispatch-rate.
|
CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> |
getReplicatorDispatchRateAsync(String namespace)
Get replicator-message-dispatch-rate asynchronously.
|
org.apache.pulsar.common.policies.data.RetentionPolicies |
getRetention(String namespace)
Get the retention configuration for a namespace.
|
CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> |
getRetentionAsync(String namespace)
Get the retention configuration for a namespace asynchronously.
|
org.apache.pulsar.common.policies.data.SchemaAutoUpdateCompatibilityStrategy |
getSchemaAutoUpdateCompatibilityStrategy(String namespace)
Get the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed.
|
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy |
getSchemaCompatibilityStrategy(String namespace)
Get the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed.
|
CompletableFuture<org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy> |
getSchemaCompatibilityStrategyAsync(String namespace)
Get the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed asynchronously.
|
boolean |
getSchemaValidationEnforced(String namespace)
Get schema validation enforced for namespace.
|
CompletableFuture<Boolean> |
getSchemaValidationEnforcedAsync(String namespace)
Get schema validation enforced for namespace asynchronously.
|
org.apache.pulsar.common.policies.data.SubscribeRate |
getSubscribeRate(String namespace)
Get namespace-subscribe-rate (topics under this namespace allow subscribe times per consumer in a period).
|
CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> |
getSubscribeRateAsync(String namespace)
Get namespace-subscribe-rate asynchronously.
|
org.apache.pulsar.common.policies.data.DispatchRate |
getSubscriptionDispatchRate(String namespace)
Get subscription-message-dispatch-rate.
|
CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> |
getSubscriptionDispatchRateAsync(String namespace)
Get subscription-message-dispatch-rate asynchronously.
|
int |
getSubscriptionExpirationTime(String namespace)
Get the subscription expiration time for a namespace.
|
CompletableFuture<Integer> |
getSubscriptionExpirationTimeAsync(String namespace)
Get the subscription expiration time for a namespace asynchronously.
|
List<String> |
getTopics(String namespace)
Get the list of topics.
|
CompletableFuture<List<String>> |
getTopicsAsync(String namespace)
Get the list of topics asynchronously.
|
void |
grantPermissionOnNamespace(String namespace,
String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions)
Grant permission on a namespace.
|
CompletableFuture<Void> |
grantPermissionOnNamespaceAsync(String namespace,
String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions)
Grant permission on a namespace asynchronously.
|
void |
grantPermissionOnSubscription(String namespace,
String subscription,
Set<String> roles)
Grant permission to role to access subscription's admin-api.
|
CompletableFuture<Void> |
grantPermissionOnSubscriptionAsync(String namespace,
String subscription,
Set<String> roles)
Grant permission to role to access subscription's admin-api asynchronously.
|
void |
removeAutoSubscriptionCreation(String namespace)
Removes the autoSubscriptionCreation policy for a given namespace.
|
CompletableFuture<Void> |
removeAutoSubscriptionCreationAsync(String namespace)
Removes the autoSubscriptionCreation policy for a given namespace asynchronously.
|
void |
removeAutoTopicCreation(String namespace)
Removes the autoTopicCreation policy for a given namespace.
|
CompletableFuture<Void> |
removeAutoTopicCreationAsync(String namespace)
Removes the autoTopicCreation policy for a given namespace asynchronously.
|
void |
removeBacklogQuota(String namespace)
Remove a backlog quota policy from a namespace.
|
CompletableFuture<Void> |
removeBacklogQuotaAsync(String namespace)
Remove a backlog quota policy from a namespace asynchronously.
|
void |
removeDeduplicationSnapshotInterval(String namespace)
Remove the deduplicationSnapshotInterval for a namespace.
|
CompletableFuture<Void> |
removeDeduplicationSnapshotIntervalAsync(String namespace)
Remove the deduplicationSnapshotInterval for a namespace asynchronously.
|
void |
removeInactiveTopicPolicies(String namespace)
Remove inactive topic policies from a namespace.
|
CompletableFuture<Void> |
removeInactiveTopicPoliciesAsync(String namespace)
remove InactiveTopicPolicies from a namespace asynchronously.
|
void |
removeMaxProducersPerTopic(String namespace)
Remove maxProducersPerTopic for a namespace.
|
CompletableFuture<Void> |
removeMaxProducersPerTopicAsync(String namespace)
Set maxProducersPerTopic for a namespace asynchronously.
|
void |
removeMaxSubscriptionsPerTopic(String namespace)
Remove the maxSubscriptionsPerTopic for a namespace.
|
CompletableFuture<Void> |
removeMaxSubscriptionsPerTopicAsync(String namespace)
Remove the maxSubscriptionsPerTopic for a namespace asynchronously.
|
void |
removeNamespaceMessageTTL(String namespace)
Remove the messages Time to Live for all the topics within a namespace.
|
CompletableFuture<Void> |
removeNamespaceMessageTTLAsync(String namespace)
Remove the messages Time to Live for all the topics within a namespace asynchronously.
|
void |
removeOffloadPolicies(String namespace)
Remove the offload configuration for a namespace.
|
CompletableFuture<Void> |
removeOffloadPoliciesAsync(String namespace)
Remove the offload configuration for a namespace asynchronously.
|
void |
removePublishRate(String namespace)
Remove message-publish-rate (topics under this namespace can publish this many messages per second).
|
CompletableFuture<Void> |
removePublishRateAsync(String namespace)
Remove message-publish-rate asynchronously.
|
void |
revokePermissionOnSubscription(String namespace,
String subscription,
String role)
Revoke permissions on a subscription's admin-api access.
|
CompletableFuture<Void> |
revokePermissionOnSubscriptionAsync(String namespace,
String subscription,
String role)
Revoke permissions on a subscription's admin-api access asynchronously.
|
void |
revokePermissionsOnNamespace(String namespace,
String role)
Revoke permissions on a namespace.
|
CompletableFuture<Void> |
revokePermissionsOnNamespaceAsync(String namespace,
String role)
Revoke permissions on a namespace asynchronously.
|
void |
setAutoSubscriptionCreation(String namespace,
org.apache.pulsar.common.policies.data.AutoSubscriptionCreationOverride autoSubscriptionCreationOverride)
Sets the autoSubscriptionCreation policy for a given namespace, overriding broker settings.
|
CompletableFuture<Void> |
setAutoSubscriptionCreationAsync(String namespace,
org.apache.pulsar.common.policies.data.AutoSubscriptionCreationOverride autoSubscriptionCreationOverride)
Sets the autoSubscriptionCreation policy for a given namespace, overriding broker settings asynchronously.
|
void |
setAutoTopicCreation(String namespace,
org.apache.pulsar.common.policies.data.AutoTopicCreationOverride autoTopicCreationOverride)
Sets the autoTopicCreation policy for a given namespace, overriding broker settings.
|
CompletableFuture<Void> |
setAutoTopicCreationAsync(String namespace,
org.apache.pulsar.common.policies.data.AutoTopicCreationOverride autoTopicCreationOverride)
Sets the autoTopicCreation policy for a given namespace, overriding broker settings asynchronously.
|
void |
setBacklogQuota(String namespace,
org.apache.pulsar.common.policies.data.BacklogQuota backlogQuota)
Set a backlog quota for all the topics on a namespace.
|
CompletableFuture<Void> |
setBacklogQuotaAsync(String namespace,
org.apache.pulsar.common.policies.data.BacklogQuota backlogQuota)
Set a backlog quota for all the topics on a namespace asynchronously.
|
void |
setBookieAffinityGroup(String namespace,
org.apache.pulsar.common.policies.data.BookieAffinityGroupData bookieAffinityGroup)
Set bookie affinity group for a namespace to isolate namespace write to bookies that are part of given affinity
group.
|
CompletableFuture<Void> |
setBookieAffinityGroupAsync(String namespace,
org.apache.pulsar.common.policies.data.BookieAffinityGroupData bookieAffinityGroup)
Set bookie affinity group for a namespace to isolate namespace write to bookies that are part of given affinity
group asynchronously.
|
void |
setCompactionThreshold(String namespace,
long compactionThreshold)
Set the compactionThreshold for a namespace.
|
CompletableFuture<Void> |
setCompactionThresholdAsync(String namespace,
long compactionThreshold)
Set the compactionThreshold for a namespace asynchronously.
|
void |
setDeduplicationSnapshotInterval(String namespace,
Integer interval)
Set the deduplicationSnapshotInterval for a namespace.
|
CompletableFuture<Void> |
setDeduplicationSnapshotIntervalAsync(String namespace,
Integer interval)
Set the deduplicationSnapshotInterval for a namespace asynchronously.
|
void |
setDeduplicationStatus(String namespace,
boolean enableDeduplication)
Set the deduplication status for all topics within a namespace.
|
CompletableFuture<Void> |
setDeduplicationStatusAsync(String namespace,
boolean enableDeduplication)
Set the deduplication status for all topics within a namespace asynchronously.
|
void |
setDelayedDeliveryMessages(String namespace,
org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies delayedDeliveryPolicies)
Set the delayed delivery messages for all topics within a namespace.
|
CompletableFuture<Void> |
setDelayedDeliveryMessagesAsync(String namespace,
org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies delayedDeliveryPolicies)
Set the delayed delivery messages for all topics within a namespace asynchronously.
|
void |
setDispatchRate(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set message-dispatch-rate (topics under this namespace can dispatch this many messages per second).
|
CompletableFuture<Void> |
setDispatchRateAsync(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set message-dispatch-rate asynchronously.
|
void |
setEncryptionRequiredStatus(String namespace,
boolean encryptionRequired)
Set the encryption required status for all topics within a namespace.
|
CompletableFuture<Void> |
setEncryptionRequiredStatusAsync(String namespace,
boolean encryptionRequired)
Set the encryption required status for all topics within a namespace asynchronously.
|
void |
setInactiveTopicPolicies(String namespace,
org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies)
As same as setInactiveTopicPoliciesAsync,but it is synchronous.
|
CompletableFuture<Void> |
setInactiveTopicPoliciesAsync(String namespace,
org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies)
You can set the inactive deletion strategy at the namespace level.
|
void |
setIsAllowAutoUpdateSchema(String namespace,
boolean isAllowAutoUpdateSchema)
Set whether to allow automatic schema updates.
|
CompletableFuture<Void> |
setIsAllowAutoUpdateSchemaAsync(String namespace,
boolean isAllowAutoUpdateSchema)
Set whether to allow automatic schema updates asynchronously.
|
void |
setMaxConsumersPerSubscription(String namespace,
int maxConsumersPerSubscription)
Set maxConsumersPerSubscription for a namespace.
|
CompletableFuture<Void> |
setMaxConsumersPerSubscriptionAsync(String namespace,
int maxConsumersPerSubscription)
Set maxConsumersPerSubscription for a namespace asynchronously.
|
void |
setMaxConsumersPerTopic(String namespace,
int maxConsumersPerTopic)
Set maxConsumersPerTopic for a namespace.
|
CompletableFuture<Void> |
setMaxConsumersPerTopicAsync(String namespace,
int maxConsumersPerTopic)
Set maxConsumersPerTopic for a namespace asynchronously.
|
void |
setMaxProducersPerTopic(String namespace,
int maxProducersPerTopic)
Set maxProducersPerTopic for a namespace.
|
CompletableFuture<Void> |
setMaxProducersPerTopicAsync(String namespace,
int maxProducersPerTopic)
Set maxProducersPerTopic for a namespace asynchronously.
|
void |
setMaxSubscriptionsPerTopic(String namespace,
int maxSubscriptionsPerTopic)
Set the maxSubscriptionsPerTopic for a namespace.
|
CompletableFuture<Void> |
setMaxSubscriptionsPerTopicAsync(String namespace,
int maxSubscriptionsPerTopic)
Set the maxSubscriptionsPerTopic for a namespace asynchronously.
|
void |
setMaxUnackedMessagesPerConsumer(String namespace,
int maxUnackedMessagesPerConsumer)
Set maxUnackedMessagesPerConsumer for a namespace.
|
CompletableFuture<Void> |
setMaxUnackedMessagesPerConsumerAsync(String namespace,
int maxUnackedMessagesPerConsumer)
Set maxUnackedMessagesPerConsumer for a namespace asynchronously.
|
void |
setMaxUnackedMessagesPerSubscription(String namespace,
int maxUnackedMessagesPerSubscription)
Set maxUnackedMessagesPerSubscription for a namespace.
|
CompletableFuture<Void> |
setMaxUnackedMessagesPerSubscriptionAsync(String namespace,
int maxUnackedMessagesPerSubscription)
Set maxUnackedMessagesPerSubscription for a namespace asynchronously.
|
void |
setNamespaceAntiAffinityGroup(String namespace,
String namespaceAntiAffinityGroup)
Set anti-affinity group name for a namespace.
|
CompletableFuture<Void> |
setNamespaceAntiAffinityGroupAsync(String namespace,
String namespaceAntiAffinityGroup)
Set anti-affinity group name for a namespace asynchronously.
|
void |
setNamespaceMessageTTL(String namespace,
int ttlInSeconds)
Set the messages Time to Live for all the topics within a namespace.
|
CompletableFuture<Void> |
setNamespaceMessageTTLAsync(String namespace,
int ttlInSeconds)
Set the messages Time to Live for all the topics within a namespace asynchronously.
|
void |
setNamespaceReplicationClusters(String namespace,
Set<String> clusterIds)
Set the replication clusters for a namespace.
|
CompletableFuture<Void> |
setNamespaceReplicationClustersAsync(String namespace,
Set<String> clusterIds)
Set the replication clusters for a namespace asynchronously.
|
void |
setOffloadDeleteLag(String namespace,
long lag,
TimeUnit unit)
Set the offload deletion lag for a namespace.
|
CompletableFuture<Void> |
setOffloadDeleteLagAsync(String namespace,
long lag,
TimeUnit unit)
Set the offload deletion lag for a namespace asynchronously.
|
void |
setOffloadPolicies(String namespace,
org.apache.pulsar.common.policies.data.OffloadPolicies offloadPolicies)
Set the offload configuration for all the topics in a namespace.
|
CompletableFuture<Void> |
setOffloadPoliciesAsync(String namespace,
org.apache.pulsar.common.policies.data.OffloadPolicies offloadPolicies)
Set the offload configuration for all the topics in a namespace asynchronously.
|
void |
setOffloadThreshold(String namespace,
long offloadThreshold)
Set the offloadThreshold for a namespace.
|
CompletableFuture<Void> |
setOffloadThresholdAsync(String namespace,
long offloadThreshold)
Set the offloadThreshold for a namespace asynchronously.
|
void |
setPersistence(String namespace,
org.apache.pulsar.common.policies.data.PersistencePolicies persistence)
Set the persistence configuration for all the topics on a namespace.
|
CompletableFuture<Void> |
setPersistenceAsync(String namespace,
org.apache.pulsar.common.policies.data.PersistencePolicies persistence)
Set the persistence configuration for all the topics on a namespace asynchronously.
|
void |
setPublishRate(String namespace,
org.apache.pulsar.common.policies.data.PublishRate publishMsgRate)
Set message-publish-rate (topics under this namespace can publish this many messages per second).
|
CompletableFuture<Void> |
setPublishRateAsync(String namespace,
org.apache.pulsar.common.policies.data.PublishRate publishMsgRate)
Set message-publish-rate (topics under this namespace can publish this many messages per second) asynchronously.
|
void |
setReplicatorDispatchRate(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set replicator-message-dispatch-rate.
|
CompletableFuture<Void> |
setReplicatorDispatchRateAsync(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set replicator-message-dispatch-rate asynchronously.
|
void |
setRetention(String namespace,
org.apache.pulsar.common.policies.data.RetentionPolicies retention)
Set the retention configuration for all the topics on a namespace.
|
CompletableFuture<Void> |
setRetentionAsync(String namespace,
org.apache.pulsar.common.policies.data.RetentionPolicies retention)
Set the retention configuration for all the topics on a namespace asynchronously.
|
void |
setSchemaAutoUpdateCompatibilityStrategy(String namespace,
org.apache.pulsar.common.policies.data.SchemaAutoUpdateCompatibilityStrategy strategy)
Set the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed.
|
void |
setSchemaCompatibilityStrategy(String namespace,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
Set the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed.
|
CompletableFuture<Void> |
setSchemaCompatibilityStrategyAsync(String namespace,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
Set the strategy used to check the a new schema provided by a producer is compatible with the current schema
before it is installed asynchronously.
|
void |
setSchemaValidationEnforced(String namespace,
boolean schemaValidationEnforced)
Set schema validation enforced for namespace.
|
CompletableFuture<Void> |
setSchemaValidationEnforcedAsync(String namespace,
boolean schemaValidationEnforced)
Set schema validation enforced for namespace asynchronously.
|
void |
setSubscribeRate(String namespace,
org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate)
Set namespace-subscribe-rate (topics under this namespace will limit by subscribeRate).
|
CompletableFuture<Void> |
setSubscribeRateAsync(String namespace,
org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate)
Set namespace-subscribe-rate (topics under this namespace will limit by subscribeRate) asynchronously.
|
void |
setSubscriptionAuthMode(String namespace,
org.apache.pulsar.common.policies.data.SubscriptionAuthMode subscriptionAuthMode)
Set the given subscription auth mode on all topics on a namespace.
|
CompletableFuture<Void> |
setSubscriptionAuthModeAsync(String namespace,
org.apache.pulsar.common.policies.data.SubscriptionAuthMode subscriptionAuthMode)
Set the given subscription auth mode on all topics on a namespace asynchronously.
|
void |
setSubscriptionDispatchRate(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set subscription-message-dispatch-rate.
|
CompletableFuture<Void> |
setSubscriptionDispatchRateAsync(String namespace,
org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
Set subscription-message-dispatch-rate asynchronously.
|
void |
setSubscriptionExpirationTime(String namespace,
int expirationTime)
Set the subscription expiration time in minutes for all the topics within a namespace.
|
CompletableFuture<Void> |
setSubscriptionExpirationTimeAsync(String namespace,
int expirationTime)
Set the subscription expiration time in minutes for all the topics within a namespace asynchronously.
|
void |
splitNamespaceBundle(String namespace,
String bundle,
boolean unloadSplitBundles,
String splitAlgorithmName)
Split namespace bundle.
|
CompletableFuture<Void> |
splitNamespaceBundleAsync(String namespace,
String bundle,
boolean unloadSplitBundles,
String splitAlgorithmName)
Split namespace bundle asynchronously.
|
void |
unload(String namespace)
Unload a namespace from the current serving broker.
|
CompletableFuture<Void> |
unloadAsync(String namespace)
Unload a namespace from the current serving broker asynchronously.
|
void |
unloadNamespaceBundle(String namespace,
String bundle)
Unload namespace bundle.
|
CompletableFuture<Void> |
unloadNamespaceBundleAsync(String namespace,
String bundle)
Unload namespace bundle asynchronously.
|
void |
unsubscribeNamespace(String namespace,
String subscription)
Unsubscribe the given subscription on all topics on a namespace.
|
CompletableFuture<Void> |
unsubscribeNamespaceAsync(String namespace,
String subscription)
Unsubscribe the given subscription on all topics on a namespace asynchronously.
|
void |
unsubscribeNamespaceBundle(String namespace,
String bundle,
String subscription)
Unsubscribe the given subscription on all topics on a namespace bundle.
|
CompletableFuture<Void> |
unsubscribeNamespaceBundleAsync(String namespace,
String bundle,
String subscription)
Unsubscribe the given subscription on all topics on a namespace bundle asynchronously.
|
asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, request, requestAsyncpublic NamespacesImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<String> getNamespaces(String tenant) throws PulsarAdminException
Namespaces
["my-tenant/c1/namespace1",
"my-tenant/global/namespace2",
"my-tenant/c2/namespace3"]
getNamespaces in interface Namespacestenant - Tenant namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<List<String>> getNamespacesAsync(String tenant)
Namespaces
["my-tenant/c1/namespace1",
"my-tenant/global/namespace2",
"my-tenant/c2/namespace3"]
getNamespacesAsync in interface Namespacestenant - Tenant namepublic List<String> getNamespaces(String tenant, String cluster) throws PulsarAdminException
Namespaces
["my-tenant/use/namespace1", "my-tenant/use/namespace2"]
getNamespaces in interface Namespacestenant - Tenant namecluster - Cluster namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException - Unexpected errorpublic List<String> getTopics(String namespace) throws PulsarAdminException
Namespaces
["persistent://my-tenant/use/namespace1/my-topic-1",
"persistent://my-tenant/use/namespace1/my-topic-2"]
getTopics in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic org.apache.pulsar.common.policies.data.BundlesData getBundles(String namespace) throws PulsarAdminException
NamespacesgetBundles in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.BundlesData> getBundlesAsync(String namespace)
NamespacesgetBundlesAsync in interface Namespacesnamespace - Namespace namepublic CompletableFuture<List<String>> getTopicsAsync(String namespace)
Namespaces
["persistent://my-tenant/use/namespace1/my-topic-1",
"persistent://my-tenant/use/namespace1/my-topic-2"]
getTopicsAsync in interface Namespacesnamespace - Namespace namepublic org.apache.pulsar.common.policies.data.Policies getPolicies(String namespace) throws PulsarAdminException
Namespaces
{
"auth_policies" : {
"namespace_auth" : {
"my-role" : [ "produce" ]
},
"destination_auth" : {
"persistent://prop/local/ns1/my-topic" : {
"role-1" : [ "produce" ],
"role-2" : [ "consume" ]
}
}
},
"replication_clusters" : ["use", "usw"],
"message_ttl_in_seconds" : 300
}
getPolicies in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorPoliciespublic CompletableFuture<org.apache.pulsar.common.policies.data.Policies> getPoliciesAsync(String namespace)
Namespaces
{
"auth_policies" : {
"namespace_auth" : {
"my-role" : [ "produce" ]
},
"destination_auth" : {
"persistent://prop/local/ns1/my-topic" : {
"role-1" : [ "produce" ],
"role-2" : [ "consume" ]
}
}
},
"replication_clusters" : ["use", "usw"],
"message_ttl_in_seconds" : 300
}
getPoliciesAsync in interface Namespacesnamespace - Namespace namePoliciespublic void createNamespace(String namespace, Set<String> clusters) throws PulsarAdminException
NamespacescreateNamespace in interface Namespacesnamespace - Namespace nameclusters - Clusters in which the namespace will be present. If more than one cluster is present, replication
across clusters will be enabled.PulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException.ConflictException - Namespace already existsPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createNamespaceAsync(String namespace, Set<String> clusters)
NamespacescreateNamespaceAsync in interface Namespacesnamespace - Namespace nameclusters - Clusters in which the namespace will be present. If more than one cluster is present, replication
across clusters will be enabled.public void createNamespace(String namespace, int numBundles) throws PulsarAdminException
NamespacescreateNamespace in interface Namespacesnamespace - Namespace namenumBundles - Number of bundlesPulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException.ConflictException - Namespace already existsPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createNamespaceAsync(String namespace, int numBundles)
NamespacescreateNamespaceAsync in interface Namespacesnamespace - Namespace namenumBundles - Number of bundlespublic void createNamespace(String namespace, org.apache.pulsar.common.policies.data.Policies policies) throws PulsarAdminException
NamespacescreateNamespace in interface Namespacesnamespace - Namespace namepolicies - Policies for the namespacePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException.ConflictException - Namespace already existsPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createNamespaceAsync(String namespace, org.apache.pulsar.common.policies.data.Policies policies)
NamespacescreateNamespaceAsync in interface Namespacesnamespace - Namespace namepolicies - Policies for the namespacepublic void createNamespace(String namespace, org.apache.pulsar.common.policies.data.BundlesData bundlesData) throws PulsarAdminException
NamespacescreateNamespace in interface Namespacesnamespace - Namespace namebundlesData - Bundles DataPulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException.ConflictException - Namespace already existsPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createNamespaceAsync(String namespace, org.apache.pulsar.common.policies.data.BundlesData bundlesData)
NamespacescreateNamespaceAsync in interface Namespacesnamespace - Namespace namebundlesData - Bundles Datapublic void createNamespace(String namespace) throws PulsarAdminException
NamespacescreateNamespace in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Tenant or cluster does not existPulsarAdminException.ConflictException - Namespace already existsPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createNamespaceAsync(String namespace)
NamespacescreateNamespaceAsync in interface Namespacesnamespace - Namespace namepublic void deleteNamespace(String namespace) throws PulsarAdminException
NamespacesdeleteNamespace in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Namespace is not emptyPulsarAdminException - Unexpected errorpublic void deleteNamespace(String namespace, boolean force) throws PulsarAdminException
NamespacesdeleteNamespace in interface Namespacesnamespace - Namespace nameforce - Delete namespace forcefullyPulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Namespace is not emptyPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> deleteNamespaceAsync(String namespace)
NamespacesdeleteNamespaceAsync in interface Namespacesnamespace - Namespace namepublic CompletableFuture<Void> deleteNamespaceAsync(String namespace, boolean force)
NamespacesdeleteNamespaceAsync in interface Namespacesnamespace - Namespace nameforce - Delete namespace forcefullypublic void deleteNamespaceBundle(String namespace, String bundleRange) throws PulsarAdminException
NamespacesdeleteNamespaceBundle in interface Namespacesnamespace - Namespace namebundleRange - range of the bundlePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace/bundle does not existPulsarAdminException.ConflictException - Bundle is not emptyPulsarAdminException - Unexpected errorpublic void deleteNamespaceBundle(String namespace, String bundleRange, boolean force) throws PulsarAdminException
NamespacesdeleteNamespaceBundle in interface Namespacesnamespace - Namespace namebundleRange - range of the bundleforce - Delete bundle forcefullyPulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace/bundle does not existPulsarAdminException.ConflictException - Bundle is not emptyPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> deleteNamespaceBundleAsync(String namespace, String bundleRange)
NamespacesdeleteNamespaceBundleAsync in interface Namespacesnamespace - Namespace namebundleRange - range of the bundlepublic CompletableFuture<Void> deleteNamespaceBundleAsync(String namespace, String bundleRange, boolean force)
NamespacesdeleteNamespaceBundleAsync in interface Namespacesnamespace - Namespace namebundleRange - range of the bundleforce - Delete bundle forcefullypublic Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> getPermissions(String namespace) throws PulsarAdminException
Namespaces
{
"my-role" : [ "produce" ]
"other-role" : [ "consume" ]
}
getPermissions in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>>> getPermissionsAsync(String namespace)
Namespaces
{
"my-role" : [ "produce" ]
"other-role" : [ "consume" ]
}
getPermissionsAsync in interface Namespacesnamespace - Namespace namepublic void grantPermissionOnNamespace(String namespace, String role, Set<org.apache.pulsar.common.policies.data.AuthAction> actions) throws PulsarAdminException
Namespaces
["produce", "consume"]
grantPermissionOnNamespace in interface Namespacesnamespace - Namespace namerole - Client role to which grant permissionactions - Auth actions (produce and consume)PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> grantPermissionOnNamespaceAsync(String namespace, String role, Set<org.apache.pulsar.common.policies.data.AuthAction> actions)
Namespaces
["produce", "consume"]
grantPermissionOnNamespaceAsync in interface Namespacesnamespace - Namespace namerole - Client role to which grant permissionactions - Auth actions (produce and consume)public void revokePermissionsOnNamespace(String namespace, String role) throws PulsarAdminException
NamespacesrevokePermissionsOnNamespace in interface Namespacesnamespace - Namespace namerole - Client role to which remove permissionsPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> revokePermissionsOnNamespaceAsync(String namespace, String role)
NamespacesrevokePermissionsOnNamespaceAsync in interface Namespacesnamespace - Namespace namerole - Client role to which remove permissionspublic void grantPermissionOnSubscription(String namespace, String subscription, Set<String> roles) throws PulsarAdminException
NamespacesgrantPermissionOnSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> grantPermissionOnSubscriptionAsync(String namespace, String subscription, Set<String> roles)
NamespacesgrantPermissionOnSubscriptionAsync in interface Namespacespublic void revokePermissionOnSubscription(String namespace, String subscription, String role) throws PulsarAdminException
NamespacesrevokePermissionOnSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> revokePermissionOnSubscriptionAsync(String namespace, String subscription, String role)
NamespacesrevokePermissionOnSubscriptionAsync in interface Namespacespublic List<String> getNamespaceReplicationClusters(String namespace) throws PulsarAdminException
Namespaces
["use", "usw", "usc"]
getNamespaceReplicationClusters in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.PreconditionFailedException - Namespace is not globalPulsarAdminException - Unexpected errorpublic CompletableFuture<List<String>> getNamespaceReplicationClustersAsync(String namespace)
Namespaces
["use", "usw", "usc"]
getNamespaceReplicationClustersAsync in interface Namespacesnamespace - Namespace namepublic void setNamespaceReplicationClusters(String namespace, Set<String> clusterIds) throws PulsarAdminException
Namespaces
["us-west", "us-east", "us-cent"]
setNamespaceReplicationClusters in interface Namespacesnamespace - Namespace nameclusterIds - Pulsar Cluster IdsPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.PreconditionFailedException - Namespace is not globalPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setNamespaceReplicationClustersAsync(String namespace, Set<String> clusterIds)
Namespaces
["us-west", "us-east", "us-cent"]
setNamespaceReplicationClustersAsync in interface Namespacesnamespace - Namespace nameclusterIds - Pulsar Cluster Idspublic int getNamespaceMessageTTL(String namespace) throws PulsarAdminException
Namespaces
60
getNamespaceMessageTTL in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getNamespaceMessageTTLAsync(String namespace)
Namespaces
60
getNamespaceMessageTTLAsync in interface Namespacesnamespace - Namespace namepublic void setNamespaceMessageTTL(String namespace, int ttlInSeconds) throws PulsarAdminException
Namespaces
60
setNamespaceMessageTTL in interface Namespacesnamespace - Namespace namettlInSeconds - TTL values for all messages for all topics in this namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setNamespaceMessageTTLAsync(String namespace, int ttlInSeconds)
Namespaces
60
setNamespaceMessageTTLAsync in interface Namespacesnamespace - Namespace namettlInSeconds - TTL values for all messages for all topics in this namespacepublic void removeNamespaceMessageTTL(String namespace) throws PulsarAdminException
NamespacesremoveNamespaceMessageTTL in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeNamespaceMessageTTLAsync(String namespace)
NamespacesremoveNamespaceMessageTTLAsync in interface Namespacespublic int getSubscriptionExpirationTime(String namespace) throws PulsarAdminException
Namespaces
1440
getSubscriptionExpirationTime in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getSubscriptionExpirationTimeAsync(String namespace)
Namespaces
1440
getSubscriptionExpirationTimeAsync in interface Namespacesnamespace - Namespace namepublic void setSubscriptionExpirationTime(String namespace, int expirationTime) throws PulsarAdminException
Namespaces
1440
setSubscriptionExpirationTime in interface Namespacesnamespace - Namespace nameexpirationTime - Expiration time values for all subscriptions for all topics in this namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setSubscriptionExpirationTimeAsync(String namespace, int expirationTime)
Namespaces
1440
setSubscriptionExpirationTimeAsync in interface Namespacesnamespace - Namespace nameexpirationTime - Expiration time values for all subscriptions for all topics in this namespacepublic void setNamespaceAntiAffinityGroup(String namespace, String namespaceAntiAffinityGroup) throws PulsarAdminException
NamespacessetNamespaceAntiAffinityGroup in interface Namespacesnamespace - Namespace namenamespaceAntiAffinityGroup - anti-affinity group name for a namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setNamespaceAntiAffinityGroupAsync(String namespace, String namespaceAntiAffinityGroup)
NamespacessetNamespaceAntiAffinityGroupAsync in interface Namespacesnamespace - Namespace namenamespaceAntiAffinityGroup - anti-affinity group name for a namespacepublic String getNamespaceAntiAffinityGroup(String namespace) throws PulsarAdminException
Namespaces
60
getNamespaceAntiAffinityGroup in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<String> getNamespaceAntiAffinityGroupAsync(String namespace)
Namespaces
60
getNamespaceAntiAffinityGroupAsync in interface Namespacesnamespace - Namespace namepublic List<String> getAntiAffinityNamespaces(String tenant, String cluster, String namespaceAntiAffinityGroup) throws PulsarAdminException
NamespacesgetAntiAffinityNamespaces in interface Namespacestenant - tenant is only used for authorization. Client has to be admin of any of the tenant to access this
api api.cluster - cluster namenamespaceAntiAffinityGroup - Anti-affinity group namePulsarAdminExceptionpublic CompletableFuture<List<String>> getAntiAffinityNamespacesAsync(String tenant, String cluster, String namespaceAntiAffinityGroup)
NamespacesgetAntiAffinityNamespacesAsync in interface Namespacestenant - tenant is only used for authorization. Client has to be admin of any of the tenant to access this
api api.cluster - cluster namenamespaceAntiAffinityGroup - Anti-affinity group namepublic void deleteNamespaceAntiAffinityGroup(String namespace) throws PulsarAdminException
NamespacesdeleteNamespaceAntiAffinityGroup in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> deleteNamespaceAntiAffinityGroupAsync(String namespace)
NamespacesdeleteNamespaceAntiAffinityGroupAsync in interface Namespacesnamespace - Namespace namepublic void setDeduplicationStatus(String namespace, boolean enableDeduplication) throws PulsarAdminException
Namespaces
true
setDeduplicationStatus in interface Namespacesnamespace - Namespace nameenableDeduplication - wether to enable or disable deduplication featurePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setDeduplicationStatusAsync(String namespace, boolean enableDeduplication)
Namespaces
true
setDeduplicationStatusAsync in interface Namespacesnamespace - Namespace nameenableDeduplication - wether to enable or disable deduplication featurepublic void setAutoTopicCreation(String namespace, org.apache.pulsar.common.policies.data.AutoTopicCreationOverride autoTopicCreationOverride) throws PulsarAdminException
Namespaces
{
"allowAutoTopicCreation" : true,
"topicType" : "partitioned",
"defaultNumPartitions": 2
}
setAutoTopicCreation in interface Namespacesnamespace - Namespace nameautoTopicCreationOverride - Override policies for auto topic creationPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setAutoTopicCreationAsync(String namespace, org.apache.pulsar.common.policies.data.AutoTopicCreationOverride autoTopicCreationOverride)
Namespaces
{
"allowAutoTopicCreation" : true,
"topicType" : "partitioned",
"defaultNumPartitions": 2
}
setAutoTopicCreationAsync in interface Namespacesnamespace - Namespace nameautoTopicCreationOverride - Override policies for auto topic creationpublic void removeAutoTopicCreation(String namespace) throws PulsarAdminException
NamespacesremoveAutoTopicCreation in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> removeAutoTopicCreationAsync(String namespace)
NamespacesremoveAutoTopicCreationAsync in interface Namespacesnamespace - Namespace namepublic void setAutoSubscriptionCreation(String namespace, org.apache.pulsar.common.policies.data.AutoSubscriptionCreationOverride autoSubscriptionCreationOverride) throws PulsarAdminException
Namespaces
{
"allowAutoSubscriptionCreation" : true
}
setAutoSubscriptionCreation in interface Namespacesnamespace - Namespace nameautoSubscriptionCreationOverride - Override policies for auto subscription creationPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setAutoSubscriptionCreationAsync(String namespace, org.apache.pulsar.common.policies.data.AutoSubscriptionCreationOverride autoSubscriptionCreationOverride)
Namespaces
{
"allowAutoSubscriptionCreation" : true
}
setAutoSubscriptionCreationAsync in interface Namespacesnamespace - Namespace nameautoSubscriptionCreationOverride - Override policies for auto subscription creationpublic void removeAutoSubscriptionCreation(String namespace) throws PulsarAdminException
NamespacesremoveAutoSubscriptionCreation in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> removeAutoSubscriptionCreationAsync(String namespace)
NamespacesremoveAutoSubscriptionCreationAsync in interface Namespacesnamespace - Namespace namepublic Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota> getBacklogQuotaMap(String namespace) throws PulsarAdminException
Namespaces
{
"namespace_memory" : {
"limit" : "134217728",
"policy" : "consumer_backlog_eviction"
},
"destination_storage" : {
"limit" : "-1",
"policy" : "producer_exception"
}
}
getBacklogQuotaMap in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Permission deniedPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota>> getBacklogQuotaMapAsync(String namespace)
Namespaces
{
"namespace_memory" : {
"limit" : "134217728",
"policy" : "consumer_backlog_eviction"
},
"destination_storage" : {
"limit" : "-1",
"policy" : "producer_exception"
}
}
getBacklogQuotaMapAsync in interface Namespacesnamespace - Namespace namepublic void setBacklogQuota(String namespace, org.apache.pulsar.common.policies.data.BacklogQuota backlogQuota) throws PulsarAdminException
Namespaces
{
"limit" : "134217728",
"policy" : "consumer_backlog_eviction"
}
setBacklogQuota in interface Namespacesnamespace - Namespace namebacklogQuota - the new BacklogQuotaPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setBacklogQuotaAsync(String namespace, org.apache.pulsar.common.policies.data.BacklogQuota backlogQuota)
Namespaces
{
"limit" : "134217728",
"policy" : "consumer_backlog_eviction"
}
setBacklogQuotaAsync in interface Namespacesnamespace - Namespace namebacklogQuota - the new BacklogQuotapublic void removeBacklogQuota(String namespace) throws PulsarAdminException
NamespacesremoveBacklogQuota in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic void removeInactiveTopicPolicies(String namespace) throws PulsarAdminException
NamespacesremoveInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeInactiveTopicPoliciesAsync(String namespace)
NamespacesremoveInactiveTopicPoliciesAsync in interface Namespacespublic CompletableFuture<Void> removeBacklogQuotaAsync(String namespace)
NamespacesremoveBacklogQuotaAsync in interface Namespacesnamespace - Namespace namepublic void setPersistence(String namespace, org.apache.pulsar.common.policies.data.PersistencePolicies persistence) throws PulsarAdminException
Namespaces
{
"bookkeeperEnsemble" : 3, // Number of bookies to use for a topic
"bookkeeperWriteQuorum" : 2, // How many writes to make of each entry
"bookkeeperAckQuorum" : 2, // Number of acks (guaranteed copies) to wait for each entry
"managedLedgerMaxMarkDeleteRate" : 10.0, // Throttling rate of mark-delete operation
// to avoid high number of updates for each
// consumer
}
setPersistence in interface Namespacesnamespace - Namespace namepersistence - Persistence policies objectPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setPersistenceAsync(String namespace, org.apache.pulsar.common.policies.data.PersistencePolicies persistence)
Namespaces
{
"bookkeeperEnsemble" : 3, // Number of bookies to use for a topic
"bookkeeperWriteQuorum" : 2, // How many writes to make of each entry
"bookkeeperAckQuorum" : 2, // Number of acks (guaranteed copies) to wait for each entry
"managedLedgerMaxMarkDeleteRate" : 10.0, // Throttling rate of mark-delete operation
// to avoid high number of updates for each
// consumer
}
setPersistenceAsync in interface Namespacesnamespace - Namespace namepersistence - Persistence policies objectpublic void setBookieAffinityGroup(String namespace, org.apache.pulsar.common.policies.data.BookieAffinityGroupData bookieAffinityGroup) throws PulsarAdminException
NamespacessetBookieAffinityGroup in interface Namespacesnamespace - namespace namebookieAffinityGroup - bookie affinity groupPulsarAdminExceptionpublic CompletableFuture<Void> setBookieAffinityGroupAsync(String namespace, org.apache.pulsar.common.policies.data.BookieAffinityGroupData bookieAffinityGroup)
NamespacessetBookieAffinityGroupAsync in interface Namespacesnamespace - namespace namebookieAffinityGroup - bookie affinity grouppublic void deleteBookieAffinityGroup(String namespace) throws PulsarAdminException
NamespacesdeleteBookieAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> deleteBookieAffinityGroupAsync(String namespace)
NamespacesdeleteBookieAffinityGroupAsync in interface Namespacespublic org.apache.pulsar.common.policies.data.BookieAffinityGroupData getBookieAffinityGroup(String namespace) throws PulsarAdminException
NamespacesgetBookieAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.BookieAffinityGroupData> getBookieAffinityGroupAsync(String namespace)
NamespacesgetBookieAffinityGroupAsync in interface Namespacespublic org.apache.pulsar.common.policies.data.PersistencePolicies getPersistence(String namespace) throws PulsarAdminException
Namespaces
{
"bookkeeperEnsemble" : 3, // Number of bookies to use for a topic
"bookkeeperWriteQuorum" : 2, // How many writes to make of each entry
"bookkeeperAckQuorum" : 2, // Number of acks (guaranteed copies) to wait for each entry
"managedLedgerMaxMarkDeleteRate" : 10.0, // Throttling rate of mark-delete operation
// to avoid high number of updates for each
// consumer
}
getPersistence in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.PersistencePolicies> getPersistenceAsync(String namespace)
Namespaces
{
"bookkeeperEnsemble" : 3, // Number of bookies to use for a topic
"bookkeeperWriteQuorum" : 2, // How many writes to make of each entry
"bookkeeperAckQuorum" : 2, // Number of acks (guaranteed copies) to wait for each entry
"managedLedgerMaxMarkDeleteRate" : 10.0, // Throttling rate of mark-delete operation
// to avoid high number of updates for each
// consumer
}
getPersistenceAsync in interface Namespacesnamespace - Namespace namepublic void setRetention(String namespace, org.apache.pulsar.common.policies.data.RetentionPolicies retention) throws PulsarAdminException
Namespaces
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
setRetention in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setRetentionAsync(String namespace, org.apache.pulsar.common.policies.data.RetentionPolicies retention)
Namespaces
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
setRetentionAsync in interface Namespacesnamespace - Namespace namepublic org.apache.pulsar.common.policies.data.RetentionPolicies getRetention(String namespace) throws PulsarAdminException
Namespaces
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
getRetention in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> getRetentionAsync(String namespace)
Namespaces
{
"retentionTimeInMinutes" : 60, // how long to retain messages
"retentionSizeInMB" : 1024, // retention backlog limit
}
getRetentionAsync in interface Namespacesnamespace - Namespace namepublic void unload(String namespace) throws PulsarAdminException
Namespacesunload in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.PreconditionFailedException - Namespace is already unloadedPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> unloadAsync(String namespace)
NamespacesunloadAsync in interface Namespacesnamespace - Namespace namepublic String getReplicationConfigVersion(String namespace) throws PulsarAdminException
NamespacesgetReplicationConfigVersion in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<String> getReplicationConfigVersionAsync(String namespace)
NamespacesgetReplicationConfigVersionAsync in interface Namespacespublic void unloadNamespaceBundle(String namespace, String bundle) throws PulsarAdminException
NamespacesunloadNamespaceBundle in interface Namespacesbundle - range of bundle to unloadPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> unloadNamespaceBundleAsync(String namespace, String bundle)
NamespacesunloadNamespaceBundleAsync in interface Namespacesbundle - range of bundle to unloadpublic void splitNamespaceBundle(String namespace, String bundle, boolean unloadSplitBundles, String splitAlgorithmName) throws PulsarAdminException
NamespacessplitNamespaceBundle in interface Namespacesbundle - range of bundle to splitPulsarAdminExceptionpublic CompletableFuture<Void> splitNamespaceBundleAsync(String namespace, String bundle, boolean unloadSplitBundles, String splitAlgorithmName)
NamespacessplitNamespaceBundleAsync in interface Namespacesbundle - range of bundle to splitpublic void setPublishRate(String namespace, org.apache.pulsar.common.policies.data.PublishRate publishMsgRate) throws PulsarAdminException
NamespacessetPublishRate in interface NamespacespublishMsgRate - number of messages per secondPulsarAdminException - Unexpected errorpublic void removePublishRate(String namespace) throws PulsarAdminException
NamespacesremovePublishRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setPublishRateAsync(String namespace, org.apache.pulsar.common.policies.data.PublishRate publishMsgRate)
NamespacessetPublishRateAsync in interface NamespacespublishMsgRate - number of messages per secondpublic CompletableFuture<Void> removePublishRateAsync(String namespace)
NamespacesremovePublishRateAsync in interface Namespacespublic org.apache.pulsar.common.policies.data.PublishRate getPublishRate(String namespace) throws PulsarAdminException
NamespacesgetPublishRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.PublishRate> getPublishRateAsync(String namespace)
NamespacesgetPublishRateAsync in interface Namespacespublic void setDispatchRate(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate) throws PulsarAdminException
NamespacessetDispatchRate in interface NamespacesdispatchRate - number of messages per secondPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setDispatchRateAsync(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
NamespacessetDispatchRateAsync in interface NamespacesdispatchRate - number of messages per secondpublic org.apache.pulsar.common.policies.data.DispatchRate getDispatchRate(String namespace) throws PulsarAdminException
NamespacesgetDispatchRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> getDispatchRateAsync(String namespace)
NamespacesgetDispatchRateAsync in interface Namespacespublic void setSubscribeRate(String namespace, org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate) throws PulsarAdminException
NamespacessetSubscribeRate in interface NamespacessubscribeRate - consumer subscribe limit by this subscribeRatePulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setSubscribeRateAsync(String namespace, org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate)
NamespacessetSubscribeRateAsync in interface NamespacessubscribeRate - consumer subscribe limit by this subscribeRatepublic org.apache.pulsar.common.policies.data.SubscribeRate getSubscribeRate(String namespace) throws PulsarAdminException
NamespacesgetSubscribeRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> getSubscribeRateAsync(String namespace)
NamespacesgetSubscribeRateAsync in interface Namespacespublic void setSubscriptionDispatchRate(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate) throws PulsarAdminException
NamespacessetSubscriptionDispatchRate in interface NamespacesdispatchRate - number of messages per secondPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setSubscriptionDispatchRateAsync(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
NamespacessetSubscriptionDispatchRateAsync in interface NamespacesdispatchRate - number of messages per secondpublic org.apache.pulsar.common.policies.data.DispatchRate getSubscriptionDispatchRate(String namespace) throws PulsarAdminException
NamespacesgetSubscriptionDispatchRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> getSubscriptionDispatchRateAsync(String namespace)
NamespacesgetSubscriptionDispatchRateAsync in interface Namespacespublic void setReplicatorDispatchRate(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate) throws PulsarAdminException
NamespacessetReplicatorDispatchRate in interface NamespacesdispatchRate - number of messages per secondPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setReplicatorDispatchRateAsync(String namespace, org.apache.pulsar.common.policies.data.DispatchRate dispatchRate)
NamespacessetReplicatorDispatchRateAsync in interface NamespacesdispatchRate - number of messages per secondpublic org.apache.pulsar.common.policies.data.DispatchRate getReplicatorDispatchRate(String namespace) throws PulsarAdminException
NamespacesgetReplicatorDispatchRate in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> getReplicatorDispatchRateAsync(String namespace)
NamespacesgetReplicatorDispatchRateAsync in interface Namespacespublic void clearNamespaceBacklog(String namespace) throws PulsarAdminException
NamespacesclearNamespaceBacklog in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> clearNamespaceBacklogAsync(String namespace)
NamespacesclearNamespaceBacklogAsync in interface Namespacespublic void clearNamespaceBacklogForSubscription(String namespace, String subscription) throws PulsarAdminException
NamespacesclearNamespaceBacklogForSubscription in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> clearNamespaceBacklogForSubscriptionAsync(String namespace, String subscription)
NamespacesclearNamespaceBacklogForSubscriptionAsync in interface Namespacespublic void clearNamespaceBundleBacklog(String namespace, String bundle) throws PulsarAdminException
NamespacesclearNamespaceBundleBacklog in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> clearNamespaceBundleBacklogAsync(String namespace, String bundle)
NamespacesclearNamespaceBundleBacklogAsync in interface Namespacespublic void clearNamespaceBundleBacklogForSubscription(String namespace, String bundle, String subscription) throws PulsarAdminException
NamespacesclearNamespaceBundleBacklogForSubscription in interface NamespacesPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> clearNamespaceBundleBacklogForSubscriptionAsync(String namespace, String bundle, String subscription)
NamespacesclearNamespaceBundleBacklogForSubscriptionAsync in interface Namespacespublic void unsubscribeNamespace(String namespace, String subscription) throws PulsarAdminException
NamespacesunsubscribeNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unsubscribeNamespaceAsync(String namespace, String subscription)
NamespacesunsubscribeNamespaceAsync in interface Namespacespublic void unsubscribeNamespaceBundle(String namespace, String bundle, String subscription) throws PulsarAdminException
NamespacesunsubscribeNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unsubscribeNamespaceBundleAsync(String namespace, String bundle, String subscription)
NamespacesunsubscribeNamespaceBundleAsync in interface Namespacespublic void setSubscriptionAuthMode(String namespace, org.apache.pulsar.common.policies.data.SubscriptionAuthMode subscriptionAuthMode) throws PulsarAdminException
NamespacessetSubscriptionAuthMode in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionAuthModeAsync(String namespace, org.apache.pulsar.common.policies.data.SubscriptionAuthMode subscriptionAuthMode)
NamespacessetSubscriptionAuthModeAsync in interface Namespacespublic void setEncryptionRequiredStatus(String namespace, boolean encryptionRequired) throws PulsarAdminException
Namespaces
true
setEncryptionRequiredStatus in interface Namespacesnamespace - Namespace nameencryptionRequired - whether message encryption is required or notPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setEncryptionRequiredStatusAsync(String namespace, boolean encryptionRequired)
Namespaces
true
setEncryptionRequiredStatusAsync in interface Namespacesnamespace - Namespace nameencryptionRequired - whether message encryption is required or notpublic org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies getDelayedDelivery(String namespace) throws PulsarAdminException
Namespaces
{
"active" : true, // Enable or disable delayed delivery for messages on a namespace
"tickTime" : 1000, // The tick time for when retrying on delayed delivery messages
}
getDelayedDelivery in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies> getDelayedDeliveryAsync(String namespace)
Namespaces
{
"active" : true, // Enable or disable delayed delivery for messages on a namespace
"tickTime" : 1000, // The tick time for when retrying on delayed delivery messages
}
getDelayedDeliveryAsync in interface Namespacesnamespace - Namespace namepublic void setDelayedDeliveryMessages(String namespace, org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies delayedDeliveryPolicies) throws PulsarAdminException
Namespaces
{
"tickTime" : 1000, // Enable or disable delayed delivery for messages on a namespace
"active" : true, // The tick time for when retrying on delayed delivery messages
}
setDelayedDeliveryMessages in interface Namespacesnamespace - Namespace namedelayedDeliveryPolicies - Whether to enable the delayed delivery for messages.PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setDelayedDeliveryMessagesAsync(String namespace, org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies delayedDeliveryPolicies)
Namespaces
{
"tickTime" : 1000, // Enable or disable delayed delivery for messages on a namespace
"active" : true, // The tick time for when retrying on delayed delivery messages
}
setDelayedDeliveryMessagesAsync in interface Namespacesnamespace - Namespace namedelayedDeliveryPolicies - Whether to enable the delayed delivery for messages.public org.apache.pulsar.common.policies.data.InactiveTopicPolicies getInactiveTopicPolicies(String namespace) throws PulsarAdminException
NamespacesgetInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String namespace)
NamespacesgetInactiveTopicPoliciesAsync in interface Namespacespublic void setInactiveTopicPolicies(String namespace, org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies) throws PulsarAdminException
NamespacessetInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setInactiveTopicPoliciesAsync(String namespace, org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies)
NamespacessetInactiveTopicPoliciesAsync in interface Namespacespublic Integer getDeduplicationSnapshotInterval(String namespace) throws PulsarAdminException
NamespacesgetDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getDeduplicationSnapshotIntervalAsync(String namespace)
NamespacesgetDeduplicationSnapshotIntervalAsync in interface Namespacespublic void setDeduplicationSnapshotInterval(String namespace, Integer interval) throws PulsarAdminException
NamespacessetDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setDeduplicationSnapshotIntervalAsync(String namespace, Integer interval)
NamespacessetDeduplicationSnapshotIntervalAsync in interface Namespacespublic void removeDeduplicationSnapshotInterval(String namespace) throws PulsarAdminException
NamespacesremoveDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeDeduplicationSnapshotIntervalAsync(String namespace)
NamespacesremoveDeduplicationSnapshotIntervalAsync in interface Namespacespublic Integer getMaxSubscriptionsPerTopic(String namespace) throws PulsarAdminException
NamespacesgetMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxSubscriptionsPerTopicAsync(String namespace)
NamespacesgetMaxSubscriptionsPerTopicAsync in interface Namespacespublic void setMaxSubscriptionsPerTopic(String namespace, int maxSubscriptionsPerTopic) throws PulsarAdminException
NamespacessetMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxSubscriptionsPerTopicAsync(String namespace, int maxSubscriptionsPerTopic)
NamespacessetMaxSubscriptionsPerTopicAsync in interface Namespacespublic void removeMaxSubscriptionsPerTopic(String namespace) throws PulsarAdminException
NamespacesremoveMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxSubscriptionsPerTopicAsync(String namespace)
NamespacesremoveMaxSubscriptionsPerTopicAsync in interface Namespacespublic Integer getMaxProducersPerTopic(String namespace) throws PulsarAdminException
Namespaces
0
getMaxProducersPerTopic in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getMaxProducersPerTopicAsync(String namespace)
Namespaces
0
getMaxProducersPerTopicAsync in interface Namespacesnamespace - Namespace namepublic void setMaxProducersPerTopic(String namespace, int maxProducersPerTopic) throws PulsarAdminException
Namespaces
10
setMaxProducersPerTopic in interface Namespacesnamespace - Namespace namemaxProducersPerTopic - maxProducersPerTopic value for a namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setMaxProducersPerTopicAsync(String namespace, int maxProducersPerTopic)
Namespaces
10
setMaxProducersPerTopicAsync in interface Namespacesnamespace - Namespace namemaxProducersPerTopic - maxProducersPerTopic value for a namespacepublic void removeMaxProducersPerTopic(String namespace) throws PulsarAdminException
NamespacesremoveMaxProducersPerTopic in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> removeMaxProducersPerTopicAsync(String namespace)
NamespacesremoveMaxProducersPerTopicAsync in interface Namespacesnamespace - Namespace namepublic int getMaxConsumersPerTopic(String namespace) throws PulsarAdminException
Namespaces
0
getMaxConsumersPerTopic in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getMaxConsumersPerTopicAsync(String namespace)
Namespaces
0
getMaxConsumersPerTopicAsync in interface Namespacesnamespace - Namespace namepublic void setMaxConsumersPerTopic(String namespace, int maxConsumersPerTopic) throws PulsarAdminException
Namespaces
10
setMaxConsumersPerTopic in interface Namespacesnamespace - Namespace namemaxConsumersPerTopic - maxConsumersPerTopic value for a namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setMaxConsumersPerTopicAsync(String namespace, int maxConsumersPerTopic)
Namespaces
10
setMaxConsumersPerTopicAsync in interface Namespacesnamespace - Namespace namemaxConsumersPerTopic - maxConsumersPerTopic value for a namespacepublic int getMaxConsumersPerSubscription(String namespace) throws PulsarAdminException
Namespaces
0
getMaxConsumersPerSubscription in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getMaxConsumersPerSubscriptionAsync(String namespace)
Namespaces
0
getMaxConsumersPerSubscriptionAsync in interface Namespacesnamespace - Namespace namepublic void setMaxConsumersPerSubscription(String namespace, int maxConsumersPerSubscription) throws PulsarAdminException
Namespaces
10
setMaxConsumersPerSubscription in interface Namespacesnamespace - Namespace namemaxConsumersPerSubscription - maxConsumersPerSubscription value for a namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setMaxConsumersPerSubscriptionAsync(String namespace, int maxConsumersPerSubscription)
Namespaces
10
setMaxConsumersPerSubscriptionAsync in interface Namespacesnamespace - Namespace namemaxConsumersPerSubscription - maxConsumersPerSubscription value for a namespacepublic int getMaxUnackedMessagesPerConsumer(String namespace) throws PulsarAdminException
Namespaces
0
getMaxUnackedMessagesPerConsumer in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getMaxUnackedMessagesPerConsumerAsync(String namespace)
Namespaces
0
getMaxUnackedMessagesPerConsumerAsync in interface Namespacesnamespace - Namespace namepublic void setMaxUnackedMessagesPerConsumer(String namespace, int maxUnackedMessagesPerConsumer) throws PulsarAdminException
Namespaces
10
setMaxUnackedMessagesPerConsumer in interface Namespacesnamespace - Namespace namemaxUnackedMessagesPerConsumer - maxUnackedMessagesPerConsumer value for a namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setMaxUnackedMessagesPerConsumerAsync(String namespace, int maxUnackedMessagesPerConsumer)
Namespaces
10
setMaxUnackedMessagesPerConsumerAsync in interface Namespacesnamespace - Namespace namemaxUnackedMessagesPerConsumer - maxUnackedMessagesPerConsumer value for a namespacepublic int getMaxUnackedMessagesPerSubscription(String namespace) throws PulsarAdminException
Namespaces
0
getMaxUnackedMessagesPerSubscription in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Integer> getMaxUnackedMessagesPerSubscriptionAsync(String namespace)
Namespaces
0
getMaxUnackedMessagesPerSubscriptionAsync in interface Namespacesnamespace - Namespace namepublic void setMaxUnackedMessagesPerSubscription(String namespace, int maxUnackedMessagesPerSubscription) throws PulsarAdminException
Namespaces
10
setMaxUnackedMessagesPerSubscription in interface Namespacesnamespace - Namespace namemaxUnackedMessagesPerSubscription - Max number of unacknowledged messages allowed per shared subscription.PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setMaxUnackedMessagesPerSubscriptionAsync(String namespace, int maxUnackedMessagesPerSubscription)
Namespaces
10
setMaxUnackedMessagesPerSubscriptionAsync in interface Namespacesnamespace - Namespace namemaxUnackedMessagesPerSubscription - Max number of unacknowledged messages allowed per shared subscription.public long getCompactionThreshold(String namespace) throws PulsarAdminException
Namespaces
10000000
getCompactionThreshold in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Long> getCompactionThresholdAsync(String namespace)
Namespaces
10000000
getCompactionThresholdAsync in interface Namespacesnamespace - Namespace namepublic void setCompactionThreshold(String namespace, long compactionThreshold) throws PulsarAdminException
Namespaces
10000000
setCompactionThreshold in interface Namespacesnamespace - Namespace namecompactionThreshold - maximum number of backlog bytes before compaction is triggeredPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setCompactionThresholdAsync(String namespace, long compactionThreshold)
Namespaces
10000000
setCompactionThresholdAsync in interface Namespacesnamespace - Namespace namecompactionThreshold - maximum number of backlog bytes before compaction is triggeredpublic long getOffloadThreshold(String namespace) throws PulsarAdminException
Namespaces
10000000
getOffloadThreshold in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Long> getOffloadThresholdAsync(String namespace)
Namespaces
10000000
getOffloadThresholdAsync in interface Namespacesnamespace - Namespace namepublic void setOffloadThreshold(String namespace, long offloadThreshold) throws PulsarAdminException
Namespaces
10000000
setOffloadThreshold in interface Namespacesnamespace - Namespace nameoffloadThreshold - maximum number of bytes stored before offloading is triggeredPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setOffloadThresholdAsync(String namespace, long offloadThreshold)
Namespaces
10000000
setOffloadThresholdAsync in interface Namespacesnamespace - Namespace nameoffloadThreshold - maximum number of bytes stored before offloading is triggeredpublic Long getOffloadDeleteLagMs(String namespace) throws PulsarAdminException
Namespaces
3600000
getOffloadDeleteLagMs in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Long> getOffloadDeleteLagMsAsync(String namespace)
Namespaces
3600000
getOffloadDeleteLagMsAsync in interface Namespacesnamespace - Namespace namepublic void setOffloadDeleteLag(String namespace, long lag, TimeUnit unit) throws PulsarAdminException
NamespacessetOffloadDeleteLag in interface Namespacesnamespace - Namespace namelag - the duration to wait before deleting the local copyunit - the timeunit of the durationPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setOffloadDeleteLagAsync(String namespace, long lag, TimeUnit unit)
NamespacessetOffloadDeleteLagAsync in interface Namespacesnamespace - Namespace namelag - the duration to wait before deleting the local copyunit - the timeunit of the durationpublic void clearOffloadDeleteLag(String namespace) throws PulsarAdminException
NamespacesclearOffloadDeleteLag in interface NamespacesPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> clearOffloadDeleteLagAsync(String namespace)
NamespacesclearOffloadDeleteLagAsync in interface Namespacespublic org.apache.pulsar.common.policies.data.SchemaAutoUpdateCompatibilityStrategy getSchemaAutoUpdateCompatibilityStrategy(String namespace) throws PulsarAdminException
NamespacesSchemaAutoUpdateCompatibilityStrategy.AutoUpdateDisabled,
then all new schemas provided via the producer are rejected, and schemas must be updated through the REST api.getSchemaAutoUpdateCompatibilityStrategy in interface Namespacesnamespace - The namespace in whose policy we are interestedPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic void setSchemaAutoUpdateCompatibilityStrategy(String namespace, org.apache.pulsar.common.policies.data.SchemaAutoUpdateCompatibilityStrategy strategy) throws PulsarAdminException
NamespacesSchemaAutoUpdateCompatibilityStrategy.AutoUpdateDisabled.setSchemaAutoUpdateCompatibilityStrategy in interface Namespacesnamespace - The namespace in whose policy should be setPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic boolean getSchemaValidationEnforced(String namespace) throws PulsarAdminException
NamespacesgetSchemaValidationEnforced in interface NamespacesPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant or Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Boolean> getSchemaValidationEnforcedAsync(String namespace)
NamespacesgetSchemaValidationEnforcedAsync in interface Namespacespublic void setSchemaValidationEnforced(String namespace, boolean schemaValidationEnforced) throws PulsarAdminException
NamespacessetSchemaValidationEnforced in interface Namespacesnamespace - pulsar namespace nameschemaValidationEnforced - flag to enable or disable schema validation for the given namespacePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant or Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setSchemaValidationEnforcedAsync(String namespace, boolean schemaValidationEnforced)
NamespacessetSchemaValidationEnforcedAsync in interface Namespacesnamespace - pulsar namespace nameschemaValidationEnforced - flag to enable or disable schema validation for the given namespacepublic org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy getSchemaCompatibilityStrategy(String namespace) throws PulsarAdminException
NamespacesgetSchemaCompatibilityStrategy in interface Namespacesnamespace - The namespace in whose policy we are interestedPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy> getSchemaCompatibilityStrategyAsync(String namespace)
NamespacesgetSchemaCompatibilityStrategyAsync in interface Namespacesnamespace - The namespace in whose policy we are interestedpublic void setSchemaCompatibilityStrategy(String namespace, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) throws PulsarAdminException
NamespacessetSchemaCompatibilityStrategy in interface Namespacesnamespace - The namespace in whose policy should be setstrategy - The schema compatibility strategyPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setSchemaCompatibilityStrategyAsync(String namespace, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
NamespacessetSchemaCompatibilityStrategyAsync in interface Namespacesnamespace - The namespace in whose policy should be setstrategy - The schema compatibility strategypublic boolean getIsAllowAutoUpdateSchema(String namespace) throws PulsarAdminException
NamespacesgetIsAllowAutoUpdateSchema in interface Namespacesnamespace - pulsar namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant or Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Boolean> getIsAllowAutoUpdateSchemaAsync(String namespace)
NamespacesgetIsAllowAutoUpdateSchemaAsync in interface Namespacesnamespace - pulsar namespace namepublic void setIsAllowAutoUpdateSchema(String namespace, boolean isAllowAutoUpdateSchema) throws PulsarAdminException
NamespacessetIsAllowAutoUpdateSchema in interface Namespacesnamespace - pulsar namespace nameisAllowAutoUpdateSchema - flag to enable or disable auto update schemaPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant or Namespace does not existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setIsAllowAutoUpdateSchemaAsync(String namespace, boolean isAllowAutoUpdateSchema)
NamespacessetIsAllowAutoUpdateSchemaAsync in interface Namespacesnamespace - pulsar namespace nameisAllowAutoUpdateSchema - flag to enable or disable auto update schemapublic void setOffloadPolicies(String namespace, org.apache.pulsar.common.policies.data.OffloadPolicies offloadPolicies) throws PulsarAdminException
Namespaces
{
"region" : "us-east-2", // The long term storage region
"bucket" : "bucket", // Bucket to place offloaded ledger into
"endpoint" : "endpoint", // Alternative endpoint to connect to
"maxBlockSize" : 1024, // Max Block Size, default 64MB
"readBufferSize" : 1024, // Read Buffer Size, default 1MB
}
setOffloadPolicies in interface Namespacesnamespace - Namespace nameoffloadPolicies - Offload configurationPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic void removeOffloadPolicies(String namespace) throws PulsarAdminException
NamespacesremoveOffloadPolicies in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> setOffloadPoliciesAsync(String namespace, org.apache.pulsar.common.policies.data.OffloadPolicies offloadPolicies)
Namespaces
{
"region" : "us-east-2", // The long term storage region
"bucket" : "bucket", // Bucket to place offloaded ledger into
"endpoint" : "endpoint", // Alternative endpoint to connect to
"maxBlockSize" : 1024, // Max Block Size, default 64MB
"readBufferSize" : 1024, // Read Buffer Size, default 1MB
}
setOffloadPoliciesAsync in interface Namespacesnamespace - Namespace nameoffloadPolicies - Offload configurationpublic CompletableFuture<Void> removeOffloadPoliciesAsync(String namespace)
NamespacesremoveOffloadPoliciesAsync in interface Namespacesnamespace - Namespace namepublic org.apache.pulsar.common.policies.data.OffloadPolicies getOffloadPolicies(String namespace) throws PulsarAdminException
Namespaces
{
"region" : "us-east-2", // The long term storage region
"bucket" : "bucket", // Bucket to place offloaded ledger into
"endpoint" : "endpoint", // Alternative endpoint to connect to
"maxBlockSize" : 1024, // Max Block Size, default 64MB
"readBufferSize" : 1024, // Read Buffer Size, default 1MB
}
getOffloadPolicies in interface Namespacesnamespace - Namespace namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Namespace does not existPulsarAdminException.ConflictException - Concurrent modificationPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.OffloadPolicies> getOffloadPoliciesAsync(String namespace)
Namespaces
{
"region" : "us-east-2", // The long term storage region
"bucket" : "bucket", // Bucket to place offloaded ledger into
"endpoint" : "endpoint", // Alternative endpoint to connect to
"maxBlockSize" : 1024, // Max Block Size, default 64MB
"readBufferSize" : 1024, // Read Buffer Size, default 1MB
}
getOffloadPoliciesAsync in interface Namespacesnamespace - Namespace nameCopyright © 2017–2021 Apache Software Foundation. All rights reserved.