类 NamespaceName
java.lang.Object
org.apache.pulsar.common.naming.NamespaceName
- 所有已实现的接口:
ServiceUnitId
Parser of a value from the namespace field provided in configuration.
-
字段概要
字段 -
方法概要
修饰符和类型方法说明booleanstatic NamespaceNamestatic NamespaceNamestatic NamespaceName已过时。static Optional<NamespaceName>getIfValid(String namespace) Return the namespace object that thisServiceUnitIdbelongs to.getPersistentTopicName(String localTopic) inthashCode()booleanCheck whether a fully-qualified topic is included in thisServiceUnitIdobject.booleanisGlobal()booleanisV2()Returns true if this is a V2 namespace prop/namespace-name.toString()static voidvalidateNamespaceName(String tenant, String namespace) static voidvalidateNamespaceName(String tenant, String cluster, String namespace)
-
字段详细资料
-
SYSTEM_NAMESPACE
-
-
方法详细资料
-
get
-
get
-
get
-
getIfValid
-
getTenant
-
getCluster
已过时。 -
getLocalName
-
isGlobal
public boolean isGlobal() -
getPersistentTopicName
-
toString
- 指定者:
toString在接口中ServiceUnitId- 覆盖:
toString在类中Object
-
equals
-
hashCode
public int hashCode() -
validateNamespaceName
-
validateNamespaceName
-
getNamespaceObject
从接口复制的说明:ServiceUnitIdReturn the namespace object that thisServiceUnitIdbelongs to.- 指定者:
getNamespaceObject在接口中ServiceUnitId- 返回:
- NamespaceName object
-
includes
从接口复制的说明:ServiceUnitIdCheck whether a fully-qualified topic is included in thisServiceUnitIdobject.- 指定者:
includes在接口中ServiceUnitId- 参数:
topicName- a fully-qualified topic object- 返回:
- true or false
-
isV2
public boolean isV2()Returns true if this is a V2 namespace prop/namespace-name.- 返回:
- true if v2
-