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) |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsync, syncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveBacklogQuota, removeBacklogQuotaAsync, setBacklogQuota, setBacklogQuotaAsyncpublic NamespacesImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<String> getNamespaces(String tenant) throws PulsarAdminException
getNamespaces in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<List<String>> getNamespacesAsync(String tenant)
getNamespacesAsync in interface Namespacespublic List<String> getNamespaces(String tenant, String cluster) throws PulsarAdminException
getNamespaces in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<List<String>> getNamespacesAsync(String tenant, String cluster)
public List<String> getTopics(String namespace) throws PulsarAdminException
getTopics in interface NamespacesPulsarAdminExceptionpublic BundlesData getBundles(String namespace) throws PulsarAdminException
getBundles in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<BundlesData> getBundlesAsync(String namespace)
getBundlesAsync in interface Namespacespublic CompletableFuture<List<String>> getTopicsAsync(String namespace)
getTopicsAsync in interface Namespacespublic Policies getPolicies(String namespace) throws PulsarAdminException
getPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Policies> getPoliciesAsync(String namespace)
getPoliciesAsync in interface Namespacespublic void createNamespace(String namespace, Set<String> clusters) throws PulsarAdminException
createNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> createNamespaceAsync(String namespace, Set<String> clusters)
createNamespaceAsync in interface Namespacespublic void createNamespace(String namespace, int numBundles) throws PulsarAdminException
createNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> createNamespaceAsync(String namespace, int numBundles)
createNamespaceAsync in interface Namespacespublic void createNamespace(String namespace, Policies policies) throws PulsarAdminException
createNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> createNamespaceAsync(String namespace, Policies policies)
createNamespaceAsync in interface Namespacespublic void createNamespace(String namespace, BundlesData bundlesData) throws PulsarAdminException
createNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> createNamespaceAsync(String namespace, BundlesData bundlesData)
createNamespaceAsync in interface Namespacespublic void createNamespace(String namespace) throws PulsarAdminException
createNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> createNamespaceAsync(String namespace)
createNamespaceAsync in interface Namespacespublic void deleteNamespace(String namespace) throws PulsarAdminException
deleteNamespace in interface NamespacesPulsarAdminExceptionpublic void deleteNamespace(String namespace, boolean force) throws PulsarAdminException
deleteNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> deleteNamespaceAsync(String namespace)
deleteNamespaceAsync in interface Namespacespublic CompletableFuture<Void> deleteNamespaceAsync(String namespace, boolean force)
deleteNamespaceAsync in interface Namespacespublic void deleteNamespaceBundle(String namespace, String bundleRange) throws PulsarAdminException
deleteNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic void deleteNamespaceBundle(String namespace, String bundleRange, boolean force) throws PulsarAdminException
deleteNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> deleteNamespaceBundleAsync(String namespace, String bundleRange)
deleteNamespaceBundleAsync in interface Namespacespublic CompletableFuture<Void> deleteNamespaceBundleAsync(String namespace, String bundleRange, boolean force)
deleteNamespaceBundleAsync in interface Namespacespublic Map<String,Set<AuthAction>> getPermissions(String namespace) throws PulsarAdminException
getPermissions in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Map<String,Set<AuthAction>>> getPermissionsAsync(String namespace)
getPermissionsAsync in interface Namespacespublic void grantPermissionOnNamespace(String namespace, String role, Set<AuthAction> actions) throws PulsarAdminException
grantPermissionOnNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> grantPermissionOnNamespaceAsync(String namespace, String role, Set<AuthAction> actions)
grantPermissionOnNamespaceAsync in interface Namespacespublic void revokePermissionsOnNamespace(String namespace, String role) throws PulsarAdminException
revokePermissionsOnNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> revokePermissionsOnNamespaceAsync(String namespace, String role)
revokePermissionsOnNamespaceAsync in interface Namespacespublic Map<String,Set<String>> getPermissionOnSubscription(String namespace) throws PulsarAdminException
getPermissionOnSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Map<String,Set<String>>> getPermissionOnSubscriptionAsync(String namespace)
getPermissionOnSubscriptionAsync in interface Namespacespublic void grantPermissionOnSubscription(String namespace, String subscription, Set<String> roles) throws PulsarAdminException
grantPermissionOnSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> grantPermissionOnSubscriptionAsync(String namespace, String subscription, Set<String> roles)
grantPermissionOnSubscriptionAsync in interface Namespacespublic void revokePermissionOnSubscription(String namespace, String subscription, String role) throws PulsarAdminException
revokePermissionOnSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> revokePermissionOnSubscriptionAsync(String namespace, String subscription, String role)
revokePermissionOnSubscriptionAsync in interface Namespacespublic List<String> getNamespaceReplicationClusters(String namespace) throws PulsarAdminException
getNamespaceReplicationClusters in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<List<String>> getNamespaceReplicationClustersAsync(String namespace)
getNamespaceReplicationClustersAsync in interface Namespacespublic void setNamespaceReplicationClusters(String namespace, Set<String> clusterIds) throws PulsarAdminException
setNamespaceReplicationClusters in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setNamespaceReplicationClustersAsync(String namespace, Set<String> clusterIds)
setNamespaceReplicationClustersAsync in interface Namespacespublic Integer getNamespaceMessageTTL(String namespace) throws PulsarAdminException
getNamespaceMessageTTL in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getNamespaceMessageTTLAsync(String namespace)
getNamespaceMessageTTLAsync in interface Namespacespublic void setNamespaceMessageTTL(String namespace, int ttlInSeconds) throws PulsarAdminException
setNamespaceMessageTTL in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setNamespaceMessageTTLAsync(String namespace, int ttlInSeconds)
setNamespaceMessageTTLAsync in interface Namespacespublic void removeNamespaceMessageTTL(String namespace) throws PulsarAdminException
removeNamespaceMessageTTL in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeNamespaceMessageTTLAsync(String namespace)
removeNamespaceMessageTTLAsync in interface Namespacespublic Integer getSubscriptionExpirationTime(String namespace) throws PulsarAdminException
getSubscriptionExpirationTime in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getSubscriptionExpirationTimeAsync(String namespace)
getSubscriptionExpirationTimeAsync in interface Namespacespublic void setSubscriptionExpirationTime(String namespace, int expirationTime) throws PulsarAdminException
setSubscriptionExpirationTime in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionExpirationTimeAsync(String namespace, int expirationTime)
setSubscriptionExpirationTimeAsync in interface Namespacespublic void removeSubscriptionExpirationTime(String namespace) throws PulsarAdminException
removeSubscriptionExpirationTime in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscriptionExpirationTimeAsync(String namespace)
removeSubscriptionExpirationTimeAsync in interface Namespacespublic void setNamespaceAntiAffinityGroup(String namespace, String namespaceAntiAffinityGroup) throws PulsarAdminException
setNamespaceAntiAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setNamespaceAntiAffinityGroupAsync(String namespace, String namespaceAntiAffinityGroup)
setNamespaceAntiAffinityGroupAsync in interface Namespacespublic String getNamespaceAntiAffinityGroup(String namespace) throws PulsarAdminException
getNamespaceAntiAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<String> getNamespaceAntiAffinityGroupAsync(String namespace)
getNamespaceAntiAffinityGroupAsync in interface Namespacespublic List<String> getAntiAffinityNamespaces(String tenant, String cluster, String namespaceAntiAffinityGroup) throws PulsarAdminException
getAntiAffinityNamespaces in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<List<String>> getAntiAffinityNamespacesAsync(String tenant, String cluster, String namespaceAntiAffinityGroup)
getAntiAffinityNamespacesAsync in interface Namespacespublic void deleteNamespaceAntiAffinityGroup(String namespace) throws PulsarAdminException
deleteNamespaceAntiAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> deleteNamespaceAntiAffinityGroupAsync(String namespace)
deleteNamespaceAntiAffinityGroupAsync in interface Namespacespublic void removeDeduplicationStatus(String namespace) throws PulsarAdminException
removeDeduplicationStatus in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeDeduplicationStatusAsync(String namespace)
removeDeduplicationStatusAsync in interface Namespacespublic Boolean getDeduplicationStatus(String namespace) throws PulsarAdminException
getDeduplicationStatus in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Boolean> getDeduplicationStatusAsync(String namespace)
getDeduplicationStatusAsync in interface Namespacespublic void setDeduplicationStatus(String namespace, boolean enableDeduplication) throws PulsarAdminException
setDeduplicationStatus in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setDeduplicationStatusAsync(String namespace, boolean enableDeduplication)
setDeduplicationStatusAsync in interface Namespacespublic void setAutoTopicCreation(String namespace, AutoTopicCreationOverride autoTopicCreationOverride) throws PulsarAdminException
setAutoTopicCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setAutoTopicCreationAsync(String namespace, AutoTopicCreationOverride autoTopicCreationOverride)
setAutoTopicCreationAsync in interface Namespacespublic AutoTopicCreationOverride getAutoTopicCreation(String namespace) throws PulsarAdminException
getAutoTopicCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<AutoTopicCreationOverride> getAutoTopicCreationAsync(String namespace)
getAutoTopicCreationAsync in interface Namespacespublic void removeAutoTopicCreation(String namespace) throws PulsarAdminException
removeAutoTopicCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeAutoTopicCreationAsync(String namespace)
removeAutoTopicCreationAsync in interface Namespacespublic void setAutoSubscriptionCreation(String namespace, AutoSubscriptionCreationOverride autoSubscriptionCreationOverride) throws PulsarAdminException
setAutoSubscriptionCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setAutoSubscriptionCreationAsync(String namespace, AutoSubscriptionCreationOverride autoSubscriptionCreationOverride)
setAutoSubscriptionCreationAsync in interface Namespacespublic AutoSubscriptionCreationOverride getAutoSubscriptionCreation(String namespace) throws PulsarAdminException
getAutoSubscriptionCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<AutoSubscriptionCreationOverride> getAutoSubscriptionCreationAsync(String namespace)
getAutoSubscriptionCreationAsync in interface Namespacespublic void setSubscriptionTypesEnabled(String namespace, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) throws PulsarAdminException
setSubscriptionTypesEnabled in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionTypesEnabledAsync(String namespace, Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypes)
setSubscriptionTypesEnabledAsync in interface Namespacespublic Set<org.apache.pulsar.client.api.SubscriptionType> getSubscriptionTypesEnabled(String namespace) throws PulsarAdminException
getSubscriptionTypesEnabled in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Set<org.apache.pulsar.client.api.SubscriptionType>> getSubscriptionTypesEnabledAsync(String namespace)
getSubscriptionTypesEnabledAsync in interface Namespacespublic void removeSubscriptionTypesEnabled(String namespace) throws PulsarAdminException
removeSubscriptionTypesEnabled in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscriptionTypesEnabledAsync(String namespace)
removeSubscriptionTypesEnabledAsync in interface Namespacespublic void removeAutoSubscriptionCreation(String namespace) throws PulsarAdminException
removeAutoSubscriptionCreation in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeAutoSubscriptionCreationAsync(String namespace)
removeAutoSubscriptionCreationAsync in interface Namespacespublic Map<BacklogQuota.BacklogQuotaType,BacklogQuota> getBacklogQuotaMap(String namespace) throws PulsarAdminException
getBacklogQuotaMap in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Map<BacklogQuota.BacklogQuotaType,BacklogQuota>> getBacklogQuotaMapAsync(String namespace)
getBacklogQuotaMapAsync in interface Namespacespublic void setBacklogQuota(String namespace, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
setBacklogQuota in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setBacklogQuotaAsync(String namespace, BacklogQuota backlogQuota, BacklogQuota.BacklogQuotaType backlogQuotaType)
setBacklogQuotaAsync in interface Namespacespublic void removeBacklogQuota(String namespace, BacklogQuota.BacklogQuotaType backlogQuotaType) throws PulsarAdminException
removeBacklogQuota in interface NamespacesPulsarAdminExceptionpublic void removeInactiveTopicPolicies(String namespace) throws PulsarAdminException
removeInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeInactiveTopicPoliciesAsync(String namespace)
removeInactiveTopicPoliciesAsync in interface Namespacespublic CompletableFuture<Void> removeBacklogQuotaAsync(String namespace, BacklogQuota.BacklogQuotaType backlogQuotaType)
removeBacklogQuotaAsync in interface Namespacespublic void removePersistence(String namespace) throws PulsarAdminException
removePersistence in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removePersistenceAsync(String namespace)
removePersistenceAsync in interface Namespacespublic void setPersistence(String namespace, PersistencePolicies persistence) throws PulsarAdminException
setPersistence in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setPersistenceAsync(String namespace, PersistencePolicies persistence)
setPersistenceAsync in interface Namespacespublic void setBookieAffinityGroup(String namespace, BookieAffinityGroupData bookieAffinityGroup) throws PulsarAdminException
setBookieAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setBookieAffinityGroupAsync(String namespace, BookieAffinityGroupData bookieAffinityGroup)
setBookieAffinityGroupAsync in interface Namespacespublic void deleteBookieAffinityGroup(String namespace) throws PulsarAdminException
deleteBookieAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> deleteBookieAffinityGroupAsync(String namespace)
deleteBookieAffinityGroupAsync in interface Namespacespublic BookieAffinityGroupData getBookieAffinityGroup(String namespace) throws PulsarAdminException
getBookieAffinityGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<BookieAffinityGroupData> getBookieAffinityGroupAsync(String namespace)
getBookieAffinityGroupAsync in interface Namespacespublic PersistencePolicies getPersistence(String namespace) throws PulsarAdminException
getPersistence in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<PersistencePolicies> getPersistenceAsync(String namespace)
getPersistenceAsync in interface Namespacespublic void setRetention(String namespace, RetentionPolicies retention) throws PulsarAdminException
setRetention in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setRetentionAsync(String namespace, RetentionPolicies retention)
setRetentionAsync in interface Namespacespublic void removeRetention(String namespace) throws PulsarAdminException
removeRetention in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeRetentionAsync(String namespace)
removeRetentionAsync in interface Namespacespublic RetentionPolicies getRetention(String namespace) throws PulsarAdminException
getRetention in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<RetentionPolicies> getRetentionAsync(String namespace)
getRetentionAsync in interface Namespacespublic void unload(String namespace) throws PulsarAdminException
unload in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unloadAsync(String namespace)
unloadAsync in interface Namespacespublic String getReplicationConfigVersion(String namespace) throws PulsarAdminException
getReplicationConfigVersion in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<String> getReplicationConfigVersionAsync(String namespace)
getReplicationConfigVersionAsync in interface Namespacespublic void unloadNamespaceBundle(String namespace, String bundle) throws PulsarAdminException
unloadNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unloadNamespaceBundleAsync(String namespace, String bundle)
unloadNamespaceBundleAsync in interface Namespacespublic void splitNamespaceBundle(String namespace, String bundle, boolean unloadSplitBundles, String splitAlgorithmName) throws PulsarAdminException
splitNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> splitNamespaceBundleAsync(String namespace, String bundle, boolean unloadSplitBundles, String splitAlgorithmName)
splitNamespaceBundleAsync in interface Namespacespublic void setPublishRate(String namespace, PublishRate publishMsgRate) throws PulsarAdminException
setPublishRate in interface NamespacesPulsarAdminExceptionpublic void removePublishRate(String namespace) throws PulsarAdminException
removePublishRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setPublishRateAsync(String namespace, PublishRate publishMsgRate)
setPublishRateAsync in interface Namespacespublic CompletableFuture<Void> removePublishRateAsync(String namespace)
removePublishRateAsync in interface Namespacespublic PublishRate getPublishRate(String namespace) throws PulsarAdminException
getPublishRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<PublishRate> getPublishRateAsync(String namespace)
getPublishRateAsync in interface Namespacespublic void removeDispatchRate(String namespace) throws PulsarAdminException
removeDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeDispatchRateAsync(String namespace)
removeDispatchRateAsync in interface Namespacespublic void setDispatchRate(String namespace, DispatchRate dispatchRate) throws PulsarAdminException
setDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setDispatchRateAsync(String namespace, DispatchRate dispatchRate)
setDispatchRateAsync in interface Namespacespublic DispatchRate getDispatchRate(String namespace) throws PulsarAdminException
getDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getDispatchRateAsync(String namespace)
getDispatchRateAsync in interface Namespacespublic void setSubscribeRate(String namespace, SubscribeRate subscribeRate) throws PulsarAdminException
setSubscribeRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscribeRateAsync(String namespace, SubscribeRate subscribeRate)
setSubscribeRateAsync in interface Namespacespublic void removeSubscribeRate(String namespace) throws PulsarAdminException
removeSubscribeRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscribeRateAsync(String namespace)
removeSubscribeRateAsync in interface Namespacespublic SubscribeRate getSubscribeRate(String namespace) throws PulsarAdminException
getSubscribeRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<SubscribeRate> getSubscribeRateAsync(String namespace)
getSubscribeRateAsync in interface Namespacespublic void removeSubscriptionDispatchRate(String namespace) throws PulsarAdminException
removeSubscriptionDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeSubscriptionDispatchRateAsync(String namespace)
removeSubscriptionDispatchRateAsync in interface Namespacespublic void setSubscriptionDispatchRate(String namespace, DispatchRate dispatchRate) throws PulsarAdminException
setSubscriptionDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionDispatchRateAsync(String namespace, DispatchRate dispatchRate)
setSubscriptionDispatchRateAsync in interface Namespacespublic DispatchRate getSubscriptionDispatchRate(String namespace) throws PulsarAdminException
getSubscriptionDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getSubscriptionDispatchRateAsync(String namespace)
getSubscriptionDispatchRateAsync in interface Namespacespublic void setReplicatorDispatchRate(String namespace, DispatchRate dispatchRate) throws PulsarAdminException
setReplicatorDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setReplicatorDispatchRateAsync(String namespace, DispatchRate dispatchRate)
setReplicatorDispatchRateAsync in interface Namespacespublic void removeReplicatorDispatchRate(String namespace) throws PulsarAdminException
removeReplicatorDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeReplicatorDispatchRateAsync(String namespace)
removeReplicatorDispatchRateAsync in interface Namespacespublic DispatchRate getReplicatorDispatchRate(String namespace) throws PulsarAdminException
getReplicatorDispatchRate in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<DispatchRate> getReplicatorDispatchRateAsync(String namespace)
getReplicatorDispatchRateAsync in interface Namespacespublic void clearNamespaceBacklog(String namespace) throws PulsarAdminException
clearNamespaceBacklog in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearNamespaceBacklogAsync(String namespace)
clearNamespaceBacklogAsync in interface Namespacespublic void clearNamespaceBacklogForSubscription(String namespace, String subscription) throws PulsarAdminException
clearNamespaceBacklogForSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearNamespaceBacklogForSubscriptionAsync(String namespace, String subscription)
clearNamespaceBacklogForSubscriptionAsync in interface Namespacespublic void clearNamespaceBundleBacklog(String namespace, String bundle) throws PulsarAdminException
clearNamespaceBundleBacklog in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearNamespaceBundleBacklogAsync(String namespace, String bundle)
clearNamespaceBundleBacklogAsync in interface Namespacespublic void clearNamespaceBundleBacklogForSubscription(String namespace, String bundle, String subscription) throws PulsarAdminException
clearNamespaceBundleBacklogForSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearNamespaceBundleBacklogForSubscriptionAsync(String namespace, String bundle, String subscription)
clearNamespaceBundleBacklogForSubscriptionAsync in interface Namespacespublic void unsubscribeNamespace(String namespace, String subscription) throws PulsarAdminException
unsubscribeNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unsubscribeNamespaceAsync(String namespace, String subscription)
unsubscribeNamespaceAsync in interface Namespacespublic void unsubscribeNamespaceBundle(String namespace, String bundle, String subscription) throws PulsarAdminException
unsubscribeNamespaceBundle in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> unsubscribeNamespaceBundleAsync(String namespace, String bundle, String subscription)
unsubscribeNamespaceBundleAsync in interface Namespacespublic void setSubscriptionAuthMode(String namespace, SubscriptionAuthMode subscriptionAuthMode) throws PulsarAdminException
setSubscriptionAuthMode in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSubscriptionAuthModeAsync(String namespace, SubscriptionAuthMode subscriptionAuthMode)
setSubscriptionAuthModeAsync in interface Namespacespublic SubscriptionAuthMode getSubscriptionAuthMode(String namespace) throws PulsarAdminException
getSubscriptionAuthMode in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<SubscriptionAuthMode> getSubscriptionAuthModeAsync(String namespace)
getSubscriptionAuthModeAsync in interface Namespacespublic void setEncryptionRequiredStatus(String namespace, boolean encryptionRequired) throws PulsarAdminException
setEncryptionRequiredStatus in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setEncryptionRequiredStatusAsync(String namespace, boolean encryptionRequired)
setEncryptionRequiredStatusAsync in interface Namespacespublic Boolean getEncryptionRequiredStatus(String namespace) throws PulsarAdminException
getEncryptionRequiredStatus in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Boolean> getEncryptionRequiredStatusAsync(String namespace)
getEncryptionRequiredStatusAsync in interface Namespacespublic DelayedDeliveryPolicies getDelayedDelivery(String namespace) throws PulsarAdminException
getDelayedDelivery in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<DelayedDeliveryPolicies> getDelayedDeliveryAsync(String namespace)
getDelayedDeliveryAsync in interface Namespacespublic void setDelayedDeliveryMessages(String namespace, DelayedDeliveryPolicies delayedDeliveryPolicies) throws PulsarAdminException
setDelayedDeliveryMessages in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setDelayedDeliveryMessagesAsync(String namespace, DelayedDeliveryPolicies delayedDeliveryPolicies)
setDelayedDeliveryMessagesAsync in interface Namespacespublic void removeDelayedDeliveryMessages(String namespace) throws PulsarAdminException
removeDelayedDeliveryMessages in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeDelayedDeliveryMessagesAsync(String namespace)
removeDelayedDeliveryMessagesAsync in interface Namespacespublic InactiveTopicPolicies getInactiveTopicPolicies(String namespace) throws PulsarAdminException
getInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<InactiveTopicPolicies> getInactiveTopicPoliciesAsync(String namespace)
getInactiveTopicPoliciesAsync in interface Namespacespublic void setInactiveTopicPolicies(String namespace, InactiveTopicPolicies inactiveTopicPolicies) throws PulsarAdminException
setInactiveTopicPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setInactiveTopicPoliciesAsync(String namespace, InactiveTopicPolicies inactiveTopicPolicies)
setInactiveTopicPoliciesAsync in interface Namespacespublic Integer getDeduplicationSnapshotInterval(String namespace) throws PulsarAdminException
getDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getDeduplicationSnapshotIntervalAsync(String namespace)
getDeduplicationSnapshotIntervalAsync in interface Namespacespublic void setDeduplicationSnapshotInterval(String namespace, Integer interval) throws PulsarAdminException
setDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setDeduplicationSnapshotIntervalAsync(String namespace, Integer interval)
setDeduplicationSnapshotIntervalAsync in interface Namespacespublic void removeDeduplicationSnapshotInterval(String namespace) throws PulsarAdminException
removeDeduplicationSnapshotInterval in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeDeduplicationSnapshotIntervalAsync(String namespace)
removeDeduplicationSnapshotIntervalAsync in interface Namespacespublic Integer getMaxSubscriptionsPerTopic(String namespace) throws PulsarAdminException
getMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxSubscriptionsPerTopicAsync(String namespace)
getMaxSubscriptionsPerTopicAsync in interface Namespacespublic void setMaxSubscriptionsPerTopic(String namespace, int maxSubscriptionsPerTopic) throws PulsarAdminException
setMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxSubscriptionsPerTopicAsync(String namespace, int maxSubscriptionsPerTopic)
setMaxSubscriptionsPerTopicAsync in interface Namespacespublic void removeMaxSubscriptionsPerTopic(String namespace) throws PulsarAdminException
removeMaxSubscriptionsPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxSubscriptionsPerTopicAsync(String namespace)
removeMaxSubscriptionsPerTopicAsync in interface Namespacespublic Integer getMaxProducersPerTopic(String namespace) throws PulsarAdminException
getMaxProducersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxProducersPerTopicAsync(String namespace)
getMaxProducersPerTopicAsync in interface Namespacespublic void setMaxProducersPerTopic(String namespace, int maxProducersPerTopic) throws PulsarAdminException
setMaxProducersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxProducersPerTopicAsync(String namespace, int maxProducersPerTopic)
setMaxProducersPerTopicAsync in interface Namespacespublic void removeMaxProducersPerTopic(String namespace) throws PulsarAdminException
removeMaxProducersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxProducersPerTopicAsync(String namespace)
removeMaxProducersPerTopicAsync in interface Namespacespublic Integer getMaxConsumersPerTopic(String namespace) throws PulsarAdminException
getMaxConsumersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxConsumersPerTopicAsync(String namespace)
getMaxConsumersPerTopicAsync in interface Namespacespublic void setMaxConsumersPerTopic(String namespace, int maxConsumersPerTopic) throws PulsarAdminException
setMaxConsumersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxConsumersPerTopicAsync(String namespace, int maxConsumersPerTopic)
setMaxConsumersPerTopicAsync in interface Namespacespublic void removeMaxConsumersPerTopic(String namespace) throws PulsarAdminException
removeMaxConsumersPerTopic in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxConsumersPerTopicAsync(String namespace)
removeMaxConsumersPerTopicAsync in interface Namespacespublic Integer getMaxConsumersPerSubscription(String namespace) throws PulsarAdminException
getMaxConsumersPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxConsumersPerSubscriptionAsync(String namespace)
getMaxConsumersPerSubscriptionAsync in interface Namespacespublic void setMaxConsumersPerSubscription(String namespace, int maxConsumersPerSubscription) throws PulsarAdminException
setMaxConsumersPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxConsumersPerSubscriptionAsync(String namespace, int maxConsumersPerSubscription)
setMaxConsumersPerSubscriptionAsync in interface Namespacespublic void removeMaxConsumersPerSubscription(String namespace) throws PulsarAdminException
removeMaxConsumersPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxConsumersPerSubscriptionAsync(String namespace)
removeMaxConsumersPerSubscriptionAsync in interface Namespacespublic Integer getMaxUnackedMessagesPerConsumer(String namespace) throws PulsarAdminException
getMaxUnackedMessagesPerConsumer in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesPerConsumerAsync(String namespace)
getMaxUnackedMessagesPerConsumerAsync in interface Namespacespublic void setMaxUnackedMessagesPerConsumer(String namespace, int maxUnackedMessagesPerConsumer) throws PulsarAdminException
setMaxUnackedMessagesPerConsumer in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxUnackedMessagesPerConsumerAsync(String namespace, int maxUnackedMessagesPerConsumer)
setMaxUnackedMessagesPerConsumerAsync in interface Namespacespublic void removeMaxUnackedMessagesPerConsumer(String namespace) throws PulsarAdminException
removeMaxUnackedMessagesPerConsumer in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxUnackedMessagesPerConsumerAsync(String namespace)
removeMaxUnackedMessagesPerConsumerAsync in interface Namespacespublic Integer getMaxUnackedMessagesPerSubscription(String namespace) throws PulsarAdminException
getMaxUnackedMessagesPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxUnackedMessagesPerSubscriptionAsync(String namespace)
getMaxUnackedMessagesPerSubscriptionAsync in interface Namespacespublic void setMaxUnackedMessagesPerSubscription(String namespace, int maxUnackedMessagesPerSubscription) throws PulsarAdminException
setMaxUnackedMessagesPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxUnackedMessagesPerSubscriptionAsync(String namespace, int maxUnackedMessagesPerSubscription)
setMaxUnackedMessagesPerSubscriptionAsync in interface Namespacespublic void removeMaxUnackedMessagesPerSubscription(String namespace) throws PulsarAdminException
removeMaxUnackedMessagesPerSubscription in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxUnackedMessagesPerSubscriptionAsync(String namespace)
removeMaxUnackedMessagesPerSubscriptionAsync in interface Namespacespublic Long getCompactionThreshold(String namespace) throws PulsarAdminException
getCompactionThreshold in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Long> getCompactionThresholdAsync(String namespace)
getCompactionThresholdAsync in interface Namespacespublic void setCompactionThreshold(String namespace, long compactionThreshold) throws PulsarAdminException
setCompactionThreshold in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setCompactionThresholdAsync(String namespace, long compactionThreshold)
setCompactionThresholdAsync in interface Namespacespublic void removeCompactionThreshold(String namespace) throws PulsarAdminException
removeCompactionThreshold in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeCompactionThresholdAsync(String namespace)
removeCompactionThresholdAsync in interface Namespacespublic long getOffloadThreshold(String namespace) throws PulsarAdminException
getOffloadThreshold in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Long> getOffloadThresholdAsync(String namespace)
getOffloadThresholdAsync in interface Namespacespublic void setOffloadThreshold(String namespace, long offloadThreshold) throws PulsarAdminException
setOffloadThreshold in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setOffloadThresholdAsync(String namespace, long offloadThreshold)
setOffloadThresholdAsync in interface Namespacespublic Long getOffloadDeleteLagMs(String namespace) throws PulsarAdminException
getOffloadDeleteLagMs in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Long> getOffloadDeleteLagMsAsync(String namespace)
getOffloadDeleteLagMsAsync in interface Namespacespublic void setOffloadDeleteLag(String namespace, long lag, TimeUnit unit) throws PulsarAdminException
setOffloadDeleteLag in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setOffloadDeleteLagAsync(String namespace, long lag, TimeUnit unit)
setOffloadDeleteLagAsync in interface Namespacespublic void clearOffloadDeleteLag(String namespace) throws PulsarAdminException
clearOffloadDeleteLag in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearOffloadDeleteLagAsync(String namespace)
clearOffloadDeleteLagAsync in interface Namespacespublic SchemaAutoUpdateCompatibilityStrategy getSchemaAutoUpdateCompatibilityStrategy(String namespace) throws PulsarAdminException
getSchemaAutoUpdateCompatibilityStrategy in interface NamespacesPulsarAdminExceptionpublic void setSchemaAutoUpdateCompatibilityStrategy(String namespace, SchemaAutoUpdateCompatibilityStrategy strategy) throws PulsarAdminException
setSchemaAutoUpdateCompatibilityStrategy in interface NamespacesPulsarAdminExceptionpublic boolean getSchemaValidationEnforced(String namespace) throws PulsarAdminException
getSchemaValidationEnforced in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Boolean> getSchemaValidationEnforcedAsync(String namespace)
getSchemaValidationEnforcedAsync in interface Namespacespublic boolean getSchemaValidationEnforced(String namespace, boolean applied) throws PulsarAdminException
getSchemaValidationEnforced in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Boolean> getSchemaValidationEnforcedAsync(String namespace, boolean applied)
getSchemaValidationEnforcedAsync in interface Namespacespublic void setSchemaValidationEnforced(String namespace, boolean schemaValidationEnforced) throws PulsarAdminException
setSchemaValidationEnforced in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSchemaValidationEnforcedAsync(String namespace, boolean schemaValidationEnforced)
setSchemaValidationEnforcedAsync in interface Namespacespublic SchemaCompatibilityStrategy getSchemaCompatibilityStrategy(String namespace) throws PulsarAdminException
getSchemaCompatibilityStrategy in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<SchemaCompatibilityStrategy> getSchemaCompatibilityStrategyAsync(String namespace)
getSchemaCompatibilityStrategyAsync in interface Namespacespublic void setSchemaCompatibilityStrategy(String namespace, SchemaCompatibilityStrategy strategy) throws PulsarAdminException
setSchemaCompatibilityStrategy in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setSchemaCompatibilityStrategyAsync(String namespace, SchemaCompatibilityStrategy strategy)
setSchemaCompatibilityStrategyAsync in interface Namespacespublic boolean getIsAllowAutoUpdateSchema(String namespace) throws PulsarAdminException
getIsAllowAutoUpdateSchema in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Boolean> getIsAllowAutoUpdateSchemaAsync(String namespace)
getIsAllowAutoUpdateSchemaAsync in interface Namespacespublic void setIsAllowAutoUpdateSchema(String namespace, boolean isAllowAutoUpdateSchema) throws PulsarAdminException
setIsAllowAutoUpdateSchema in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setIsAllowAutoUpdateSchemaAsync(String namespace, boolean isAllowAutoUpdateSchema)
setIsAllowAutoUpdateSchemaAsync in interface Namespacespublic void setOffloadPolicies(String namespace, OffloadPolicies offloadPolicies) throws PulsarAdminException
setOffloadPolicies in interface NamespacesPulsarAdminExceptionpublic void removeOffloadPolicies(String namespace) throws PulsarAdminException
removeOffloadPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setOffloadPoliciesAsync(String namespace, OffloadPolicies offloadPolicies)
setOffloadPoliciesAsync in interface Namespacespublic CompletableFuture<Void> removeOffloadPoliciesAsync(String namespace)
removeOffloadPoliciesAsync in interface Namespacespublic OffloadPolicies getOffloadPolicies(String namespace) throws PulsarAdminException
getOffloadPolicies in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<OffloadPolicies> getOffloadPoliciesAsync(String namespace)
getOffloadPoliciesAsync in interface Namespacespublic int getMaxTopicsPerNamespace(String namespace) throws PulsarAdminException
getMaxTopicsPerNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Integer> getMaxTopicsPerNamespaceAsync(String namespace)
getMaxTopicsPerNamespaceAsync in interface Namespacespublic void setMaxTopicsPerNamespace(String namespace, int maxTopicsPerNamespace) throws PulsarAdminException
setMaxTopicsPerNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setMaxTopicsPerNamespaceAsync(String namespace, int maxTopicsPerNamespace)
setMaxTopicsPerNamespaceAsync in interface Namespacespublic void removeMaxTopicsPerNamespace(String namespace) throws PulsarAdminException
removeMaxTopicsPerNamespace in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeMaxTopicsPerNamespaceAsync(String namespace)
removeMaxTopicsPerNamespaceAsync in interface Namespacespublic CompletableFuture<Void> setPropertyAsync(String namespace, String key, String value)
setPropertyAsync in interface Namespacespublic void setProperty(String namespace, String key, String value) throws PulsarAdminException
setProperty in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setPropertiesAsync(String namespace, Map<String,String> properties)
setPropertiesAsync in interface Namespacespublic void setProperties(String namespace, Map<String,String> properties) throws PulsarAdminException
setProperties in interface NamespacesPulsarAdminExceptionpublic String getNamespaceResourceGroup(String namespace) throws PulsarAdminException
getNamespaceResourceGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<String> getPropertyAsync(String namespace, String key)
getPropertyAsync in interface Namespacespublic String getProperty(String namespace, String key) throws PulsarAdminException
getProperty in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Map<String,String>> getPropertiesAsync(String namespace)
getPropertiesAsync in interface Namespacespublic CompletableFuture<String> getNamespaceResourceGroupAsync(String namespace)
getNamespaceResourceGroupAsync in interface Namespacespublic Map<String,String> getProperties(String namespace) throws PulsarAdminException
getProperties in interface NamespacesPulsarAdminExceptionpublic void setNamespaceResourceGroup(String namespace, String resourcegroupname) throws PulsarAdminException
setNamespaceResourceGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<String> removePropertyAsync(String namespace, String key)
removePropertyAsync in interface Namespacespublic String removeProperty(String namespace, String key) throws PulsarAdminException
removeProperty in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> setNamespaceResourceGroupAsync(String namespace, String resourcegroupname)
setNamespaceResourceGroupAsync in interface Namespacespublic void removeNamespaceResourceGroup(String namespace) throws PulsarAdminException
removeNamespaceResourceGroup in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> clearPropertiesAsync(String namespace)
clearPropertiesAsync in interface Namespacespublic void clearProperties(String namespace) throws PulsarAdminException
clearProperties in interface NamespacesPulsarAdminExceptionpublic CompletableFuture<Void> removeNamespaceResourceGroupAsync(String namespace)
removeNamespaceResourceGroupAsync in interface NamespacesCopyright © 2017–2021 Apache Software Foundation. All rights reserved.