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

public class TopicMessageIdImpl extends Object implements org.apache.pulsar.client.api.MessageId
See Also:
  • Constructor Details

    • TopicMessageIdImpl

      public TopicMessageIdImpl(String topicPartitionName, String topicName, org.apache.pulsar.client.api.MessageId messageId)
  • Method Details

    • getTopicName

      public String getTopicName()
      Get the topic name without partition part of this message.
      Returns:
      the name of the topic on which this message was published
    • getTopicPartitionName

      public String 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

      public String toString()
      Overrides:
      toString in class Object
    • toByteArray

      public byte[] toByteArray()
      Specified by:
      toByteArray in interface org.apache.pulsar.client.api.MessageId
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(org.apache.pulsar.client.api.MessageId o)
      Specified by:
      compareTo in interface Comparable<org.apache.pulsar.client.api.MessageId>