Package org.apache.pulsar.common.naming
Interface ServiceUnitId
-
- All Known Implementing Classes:
NamespaceName,TopicName
public interface ServiceUnitIdBasic interface for service unit's identification.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamespaceNamegetNamespaceObject()Return the namespace object that thisServiceUnitIdbelongs to.booleanincludes(TopicName topicName)Check whether a fully-qualified topic is included in thisServiceUnitIdobject.java.lang.StringtoString()
-
-
-
Method Detail
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getNamespaceObject
NamespaceName getNamespaceObject()
Return the namespace object that thisServiceUnitIdbelongs to.- Returns:
- NamespaceName object
-
includes
boolean includes(TopicName topicName)
Check whether a fully-qualified topic is included in thisServiceUnitIdobject.- Parameters:
topicName- a fully-qualified topic object- Returns:
- true or false
-
-