接口 TopicMessageId
- 所有超级接口:
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".
-
字段概要
-
方法概要
从接口继承的方法 java.lang.Comparable
compareTo
从接口继承的方法 org.apache.pulsar.client.api.MessageId
toByteArray
-
方法详细资料
-
getOwnerTopic
String getOwnerTopic()Return the owner topic name of a message.- 返回:
- the owner topic
-
create
-