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 thisServiceUnitId
belongs to.boolean
Check whether a fully-qualified topic is included in thisServiceUnitId
object.toString()
-
Method Details
-
toString
String toString() -
getNamespaceObject
NamespaceName getNamespaceObject()Return the namespace object that thisServiceUnitId
belongs to.- Returns:
- NamespaceName object
-
includes
Check whether a fully-qualified topic is included in thisServiceUnitId
object.- Parameters:
topicName
- a fully-qualified topic object- Returns:
- true or false
-