Package org.apache.pulsar.client.api
Interface TopicMessageId
- All Superinterfaces:
 Comparable<MessageId>,MessageId,Serializable
The MessageId used for a consumer that subscribes multiple topics or partitioned topics.
 
 It's guaranteed that Message.getMessageId() must return a TopicMessageId instance if the Message is received
 from a consumer that subscribes multiple topics or partitioned topics.
 The topic name used in APIs related to this class like `getOwnerTopic` and `create` must be the full topic name. For
 example, "my-topic" is invalid while "persistent://public/default/my-topic" is valid.
 If the topic is a partitioned topic, the topic name should be the name of the specific partition, e.g.
 "persistent://public/default/my-topic-partition-0".
 
- 
Field Summary
 - 
Method Summary
Modifier and TypeMethodDescriptionstatic TopicMessageIdReturn the owner topic name of a message.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.apache.pulsar.client.api.MessageId
toByteArray 
- 
Method Details
- 
getOwnerTopic
String getOwnerTopic()Return the owner topic name of a message.- Returns:
 - the owner topic
 
 - 
create
 
 -