public interface MessageId extends Comparable<MessageId>
The MessageId can be used to reference a specific message, for example when acknowledging, without having to retain the message content in memory for an extended period of time.
Message ids are Comparable and a bigger message id will imply that a message was published "after"
the other one.
| Modifier and Type | Field and Description |
|---|---|
static MessageId |
earliest
MessageId that represents the oldest message available in the topic.
|
static MessageId |
latest
MessageId that represents the next message published in the topic.
|
| Modifier and Type | Method and Description |
|---|---|
static MessageId |
fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg) |
long |
getEntryId() |
long |
getLedgerId() |
int |
getPartitionIndex() |
compareTostatic final MessageId earliest
static final MessageId latest
static MessageId fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)
long getLedgerId()
long getEntryId()
int getPartitionIndex()
Copyright © 2019-2021, TurtleQueue All Rights Reserved. Use is subject to license terms.