public class MessageIdImpl extends Object implements MessageId
| Modifier and Type | Field and Description |
|---|---|
protected long |
entryId |
protected long |
ledgerId |
protected int |
partitionIndex |
| Constructor and Description |
|---|
MessageIdImpl(long ledgerId,
long entryId,
int partitionIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MessageId o) |
boolean |
equals(Object obj) |
protected static MessageIdImpl |
fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg) |
long |
getEntryId() |
long |
getLedgerId() |
int |
getPartitionIndex() |
int |
hashCode() |
protected static com.turtlequeue.sdk.api.proto.Tq.MessageIdData |
toMessageIdData(MessageId msg) |
String |
toString() |
protected final long ledgerId
protected final long entryId
protected final int partitionIndex
public MessageIdImpl(long ledgerId,
long entryId,
int partitionIndex)
public long getLedgerId()
getLedgerId in interface MessageIdpublic long getEntryId()
getEntryId in interface MessageIdpublic int getPartitionIndex()
getPartitionIndex in interface MessageIdpublic int compareTo(MessageId o)
compareTo in interface Comparable<MessageId>protected static MessageIdImpl fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)
fromMessageIdData in interface MessageIdprotected static com.turtlequeue.sdk.api.proto.Tq.MessageIdData toMessageIdData(MessageId msg)
Copyright © 2019-2021, TurtleQueue All Rights Reserved. Use is subject to license terms.