Package org.apache.pulsar.client.impl
Class TopicMessageIdImpl
java.lang.Object
org.apache.pulsar.client.impl.TopicMessageIdImpl
- All Implemented Interfaces:
Serializable,Comparable<org.apache.pulsar.client.api.MessageId>,org.apache.pulsar.client.api.MessageId
- See Also:
-
Field Summary
Fields inherited from interface org.apache.pulsar.client.api.MessageId
earliest, latest -
Constructor Summary
ConstructorsConstructorDescriptionTopicMessageIdImpl(String topicPartitionName, String topicName, org.apache.pulsar.client.api.MessageId messageId) -
Method Summary
-
Constructor Details
-
TopicMessageIdImpl
-
-
Method Details
-
getTopicName
Get the topic name without partition part of this message.- Returns:
- the name of the topic on which this message was published
-
getTopicPartitionName
Get the topic name which contains partition part for this message.- Returns:
- the topic name which contains Partition part
-
getInnerMessageId
public org.apache.pulsar.client.api.MessageId getInnerMessageId() -
toString
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfaceorg.apache.pulsar.client.api.MessageId
-
hashCode
public int hashCode() -
equals
-
compareTo
public int compareTo(org.apache.pulsar.client.api.MessageId o) - Specified by:
compareToin interfaceComparable<org.apache.pulsar.client.api.MessageId>
-