Package com.turtlequeue
Interface MessageId
-
- All Superinterfaces:
Comparable<MessageId>
- All Known Implementing Classes:
MessageIdImpl
public interface MessageId extends Comparable<MessageId>
Opaque unique identifier of a single messageThe 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
Comparableand a bigger message id will imply that a message was published "after" the other one.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MessageIdfromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)longgetEntryId()longgetLedgerId()intgetPartitionIndex()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
fromMessageIdData
static MessageId fromMessageIdData(com.turtlequeue.sdk.api.proto.Tq.MessageIdData msg)
-
getLedgerId
long getLedgerId()
-
getEntryId
long getEntryId()
-
getPartitionIndex
int getPartitionIndex()
-
-