Package org.apache.pulsar.common.naming
Interface ServiceUnitId
- All Known Implementing Classes:
NamespaceName,TopicName
public interface ServiceUnitId
Basic interface for service unit's identification.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the namespace object that thisServiceUnitIdbelongs to.booleanCheck whether a fully-qualified topic is included in thisServiceUnitIdobject.toString()
-
Method Details
-
toString
String toString() -
getNamespaceObject
NamespaceName getNamespaceObject()Return the namespace object that thisServiceUnitIdbelongs to.- Returns:
- NamespaceName object
-
includes
Check whether a fully-qualified topic is included in thisServiceUnitIdobject.- Parameters:
topicName- a fully-qualified topic object- Returns:
- true or false
-