Package org.apache.pulsar.client.impl
Class TopicMessageIdImpl
- java.lang.Object
-
- org.apache.pulsar.client.impl.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
-
-
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 intcompareTo(org.apache.pulsar.client.api.MessageId o)booleanequals(java.lang.Object obj)org.apache.pulsar.client.api.MessageIdgetInnerMessageId()java.lang.StringgetTopicName()Get the topic name without partition part of this message.java.lang.StringgetTopicPartitionName()Get the topic name which contains partition part for this message.inthashCode()byte[]toByteArray()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArrayin interfaceorg.apache.pulsar.client.api.MessageId
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(org.apache.pulsar.client.api.MessageId o)
- Specified by:
compareToin interfacejava.lang.Comparable<org.apache.pulsar.client.api.MessageId>
-
-