类的使用
org.apache.pulsar.common.naming.NamespaceName
使用NamespaceName的程序包
程序包
说明
Classes to work different configuration values.
Common policies.
Implementation of policies.
-
org.apache.pulsar.common.naming中NamespaceName的使用
修饰符和类型方法说明static NamespaceNamestatic NamespaceNamestatic NamespaceNameNamespaceName.getNamespaceObject()ServiceUnitId.getNamespaceObject()Return the namespace object that thisServiceUnitIdbelongs to.TopicName.getNamespaceObject()Get the namespace object that this completeTopicName belongs to.返回变量类型为NamespaceName的类型的org.apache.pulsar.common.naming中的方法修饰符和类型方法说明static TopicNameTopicName.get(String domain, NamespaceName namespaceName, String topic) -
org.apache.pulsar.common.policies中NamespaceName的使用
修饰符和类型方法说明NamespaceIsolationPolicy.findPrimaryBrokers(List<URL> availableBrokers, NamespaceName namespace) Get the list of primary brokers for the namespace according to the policy.NamespaceIsolationPolicy.findSecondaryBrokers(List<URL> availableBrokers, NamespaceName namespace) Get the list of secondary brokers for the namespace according to the policy. -
org.apache.pulsar.common.policies.impl中NamespaceName的使用
修饰符和类型方法说明voidNamespaceIsolationPolicies.assignBroker(NamespaceName nsname, BrokerStatus brkStatus, SortedSet<BrokerStatus> primaryCandidates, SortedSet<BrokerStatus> secondaryCandidates, SortedSet<BrokerStatus> sharedCandidates) NamespaceIsolationPolicyImpl.findPrimaryBrokers(List<URL> availableBrokers, NamespaceName namespace) NamespaceIsolationPolicyImpl.findSecondaryBrokers(List<URL> availableBrokers, NamespaceName namespace) NamespaceIsolationPolicies.getPolicyByNamespace(NamespaceName namespace) Get the namespace isolation policy for the specified namespace.