public class NamespaceName extends Object implements ServiceUnitId
| Modifier and Type | Field and Description |
|---|---|
static NamespaceName |
SYSTEM_NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static NamespaceName |
get(String namespace) |
static NamespaceName |
get(String tenant,
String namespace) |
static NamespaceName |
get(String tenant,
String cluster,
String namespace) |
String |
getCluster()
Deprecated.
|
static Optional<NamespaceName> |
getIfValid(String namespace) |
String |
getLocalName() |
NamespaceName |
getNamespaceObject()
Return the namespace object that this
ServiceUnitId belongs to. |
String |
getPersistentTopicName(String localTopic) |
String |
getTenant() |
int |
hashCode() |
boolean |
includes(TopicName topicName)
Check whether a fully-qualified topic is included in this
ServiceUnitId object. |
boolean |
isGlobal() |
boolean |
isV2()
Returns true if this is a V2 namespace prop/namespace-name.
|
String |
toString() |
static void |
validateNamespaceName(String tenant,
String namespace) |
static void |
validateNamespaceName(String tenant,
String cluster,
String namespace) |
public static final NamespaceName SYSTEM_NAMESPACE
public static NamespaceName get(String tenant, String namespace)
public static NamespaceName get(String tenant, String cluster, String namespace)
public static NamespaceName get(String namespace)
public static Optional<NamespaceName> getIfValid(String namespace)
public String getTenant()
@Deprecated public String getCluster()
public String getLocalName()
public boolean isGlobal()
public String toString()
toString in interface ServiceUnitIdtoString in class Objectpublic static void validateNamespaceName(String tenant, String cluster, String namespace)
public NamespaceName getNamespaceObject()
ServiceUnitIdServiceUnitId belongs to.getNamespaceObject in interface ServiceUnitIdpublic boolean includes(TopicName topicName)
ServiceUnitIdServiceUnitId object.includes in interface ServiceUnitIdtopicName - a fully-qualified topic objectpublic boolean isV2()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.