Interface MessageId

  • All Superinterfaces:
    Comparable<MessageId>
    All Known Implementing Classes:
    MessageIdImpl

    public interface MessageId
    extends Comparable<MessageId>
    Opaque unique identifier of a single message

    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.

    • Field Detail

      • earliest

        static final MessageId earliest
        MessageId that represents the oldest message available in the topic.
      • latest

        static final MessageId latest
        MessageId that represents the next message published in the topic.
    • Method Detail

      • fromMessageIdData

        static MessageId fromMessageIdData​(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)
      • getLedgerId

        long getLedgerId()
      • getEntryId

        long getEntryId()
      • getPartitionIndex

        int getPartitionIndex()