Package com.turtlequeue
Class MessageIdImpl
- java.lang.Object
-
- com.turtlequeue.MessageIdImpl
-
- All Implemented Interfaces:
MessageId,Comparable<MessageId>
public class MessageIdImpl extends Object implements MessageId
-
-
Constructor Summary
Constructors Constructor Description MessageIdImpl(long ledgerId, long entryId, int partitionIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MessageId o)booleanequals(Object obj)protected static MessageIdImplfromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)longgetEntryId()longgetLedgerId()intgetPartitionIndex()inthashCode()protected static com.turtlequeue.sdk.api.proto.Tq.MessageIdDatatoMessageIdData(MessageId msg)StringtoString()
-
-
-
Method Detail
-
getLedgerId
public long getLedgerId()
- Specified by:
getLedgerIdin interfaceMessageId
-
getEntryId
public long getEntryId()
- Specified by:
getEntryIdin interfaceMessageId
-
getPartitionIndex
public int getPartitionIndex()
- Specified by:
getPartitionIndexin interfaceMessageId
-
compareTo
public int compareTo(MessageId o)
- Specified by:
compareToin interfaceComparable<MessageId>
-
fromMessageIdData
protected static MessageIdImpl fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)
-
toMessageIdData
protected static com.turtlequeue.sdk.api.proto.Tq.MessageIdData toMessageIdData(MessageId msg)
-
-