Package org.apache.pulsar.broker.service
Class TopicPoliciesService.TopicPoliciesServiceDisabled
java.lang.Object
org.apache.pulsar.broker.service.TopicPoliciesService.TopicPoliciesServiceDisabled
- All Implemented Interfaces:
TopicPoliciesService
- Enclosing interface:
- TopicPoliciesService
public static class TopicPoliciesService.TopicPoliciesServiceDisabled
extends Object
implements TopicPoliciesService
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.service.TopicPoliciesService
TopicPoliciesService.TopicPoliciesServiceDisabled -
Field Summary
Fields inherited from interface org.apache.pulsar.broker.service.TopicPoliciesService
DEFAULT_GET_TOPIC_POLICY_TIMEOUT, DISABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) Add owned namespace bundle async.deleteTopicPoliciesAsync(org.apache.pulsar.common.naming.TopicName topicName) Delete policies for a topic async.org.apache.pulsar.common.policies.data.TopicPoliciesgetTopicPolicies(org.apache.pulsar.common.naming.TopicName topicName) Get policies for a topic async.org.apache.pulsar.common.policies.data.TopicPoliciesgetTopicPolicies(org.apache.pulsar.common.naming.TopicName topicName, boolean isGlobal) Get global policies for a topic async.CompletableFuture<org.apache.pulsar.common.policies.data.TopicPolicies>getTopicPoliciesBypassCacheAsync(org.apache.pulsar.common.naming.TopicName topicName) Get policies for a topic without cache async.org.apache.pulsar.common.policies.data.TopicPoliciesgetTopicPoliciesIfExists(org.apache.pulsar.common.naming.TopicName topicName) Get policies from current cache.voidregisterListener(org.apache.pulsar.common.naming.TopicName topicName, TopicPolicyListener<org.apache.pulsar.common.policies.data.TopicPolicies> listener) removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) Remove owned namespace bundle async.voidstart()Start the topic policy service.voidunregisterListener(org.apache.pulsar.common.naming.TopicName topicName, TopicPolicyListener<org.apache.pulsar.common.policies.data.TopicPolicies> listener) updateTopicPoliciesAsync(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.policies.data.TopicPolicies policies) Update policies for a topic async.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.broker.service.TopicPoliciesService
getTopicPoliciesAsyncWithRetry
-
Constructor Details
-
TopicPoliciesServiceDisabled
public TopicPoliciesServiceDisabled()
-
-
Method Details
-
deleteTopicPoliciesAsync
public CompletableFuture<Void> deleteTopicPoliciesAsync(org.apache.pulsar.common.naming.TopicName topicName) Description copied from interface:TopicPoliciesServiceDelete policies for a topic async.- Specified by:
deleteTopicPoliciesAsyncin interfaceTopicPoliciesService- Parameters:
topicName- topic name
-
updateTopicPoliciesAsync
public CompletableFuture<Void> updateTopicPoliciesAsync(org.apache.pulsar.common.naming.TopicName topicName, org.apache.pulsar.common.policies.data.TopicPolicies policies) Description copied from interface:TopicPoliciesServiceUpdate policies for a topic async.- Specified by:
updateTopicPoliciesAsyncin interfaceTopicPoliciesService- Parameters:
topicName- topic namepolicies- policies for the topic name
-
getTopicPolicies
public org.apache.pulsar.common.policies.data.TopicPolicies getTopicPolicies(org.apache.pulsar.common.naming.TopicName topicName) throws BrokerServiceException.TopicPoliciesCacheNotInitException Description copied from interface:TopicPoliciesServiceGet policies for a topic async.- Specified by:
getTopicPoliciesin interfaceTopicPoliciesService- Parameters:
topicName- topic name- Returns:
- future of the topic policies
- Throws:
BrokerServiceException.TopicPoliciesCacheNotInitException
-
getTopicPolicies
public org.apache.pulsar.common.policies.data.TopicPolicies getTopicPolicies(org.apache.pulsar.common.naming.TopicName topicName, boolean isGlobal) throws BrokerServiceException.TopicPoliciesCacheNotInitException Description copied from interface:TopicPoliciesServiceGet global policies for a topic async.- Specified by:
getTopicPoliciesin interfaceTopicPoliciesService- Parameters:
topicName- topic name- Returns:
- future of the topic policies
- Throws:
BrokerServiceException.TopicPoliciesCacheNotInitException
-
getTopicPoliciesIfExists
public org.apache.pulsar.common.policies.data.TopicPolicies getTopicPoliciesIfExists(org.apache.pulsar.common.naming.TopicName topicName) Description copied from interface:TopicPoliciesServiceGet policies from current cache.- Specified by:
getTopicPoliciesIfExistsin interfaceTopicPoliciesService- Parameters:
topicName- topic name- Returns:
- the topic policies
-
getTopicPoliciesBypassCacheAsync
public CompletableFuture<org.apache.pulsar.common.policies.data.TopicPolicies> getTopicPoliciesBypassCacheAsync(org.apache.pulsar.common.naming.TopicName topicName) Description copied from interface:TopicPoliciesServiceGet policies for a topic without cache async.- Specified by:
getTopicPoliciesBypassCacheAsyncin interfaceTopicPoliciesService- Parameters:
topicName- topic name- Returns:
- future of the topic policies
-
addOwnedNamespaceBundleAsync
Description copied from interface:TopicPoliciesServiceAdd owned namespace bundle async.- Specified by:
addOwnedNamespaceBundleAsyncin interfaceTopicPoliciesService- Parameters:
namespaceBundle- namespace bundle
-
removeOwnedNamespaceBundleAsync
Description copied from interface:TopicPoliciesServiceRemove owned namespace bundle async.- Specified by:
removeOwnedNamespaceBundleAsyncin interfaceTopicPoliciesService- Parameters:
namespaceBundle- namespace bundle
-
start
public void start()Description copied from interface:TopicPoliciesServiceStart the topic policy service.- Specified by:
startin interfaceTopicPoliciesService
-
registerListener
public void registerListener(org.apache.pulsar.common.naming.TopicName topicName, TopicPolicyListener<org.apache.pulsar.common.policies.data.TopicPolicies> listener) - Specified by:
registerListenerin interfaceTopicPoliciesService
-
unregisterListener
public void unregisterListener(org.apache.pulsar.common.naming.TopicName topicName, TopicPolicyListener<org.apache.pulsar.common.policies.data.TopicPolicies> listener) - Specified by:
unregisterListenerin interfaceTopicPoliciesService
-