Class TopicMessageIdImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<org.apache.pulsar.client.api.MessageId>, org.apache.pulsar.client.api.MessageId

    public class TopicMessageIdImpl
    extends java.lang.Object
    implements org.apache.pulsar.client.api.MessageId
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.apache.pulsar.client.api.MessageId

        earliest, latest
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicMessageIdImpl​(java.lang.String topicPartitionName, java.lang.String topicName, org.apache.pulsar.client.api.MessageId messageId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(org.apache.pulsar.client.api.MessageId o)  
      boolean equals​(java.lang.Object obj)  
      org.apache.pulsar.client.api.MessageId getInnerMessageId()  
      java.lang.String getTopicName()
      Get the topic name without partition part of this message.
      java.lang.String getTopicPartitionName()
      Get the topic name which contains partition part for this message.
      int hashCode()  
      byte[] toByteArray()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TopicMessageIdImpl

        public TopicMessageIdImpl​(java.lang.String topicPartitionName,
                                  java.lang.String topicName,
                                  org.apache.pulsar.client.api.MessageId messageId)
    • Method Detail

      • getTopicName

        public java.lang.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 java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toByteArray

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

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