Class MultiMessageIdImpl

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

    public class MultiMessageIdImpl
    extends java.lang.Object
    implements org.apache.pulsar.client.api.MessageId
    A MessageId implementation that contains a map of . This is useful when MessageId is need for partition/multi-topics/pattern consumer. e.g. seek(), ackCumulative(), getLastMessageId().
    See Also:
    Serialized Form
    • Field Summary

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

        earliest, latest
    • 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)  
      int hashCode()  
      byte[] toByteArray()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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
      • 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>
      • equals

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