22#include <pulsar/defines.h>
51 explicit MessageId(int32_t partition, int64_t ledgerId, int64_t entryId, int32_t batchIndex);
84 bool operator<(
const MessageId& other)
const;
85 bool operator<=(
const MessageId& other)
const;
86 bool operator>(
const MessageId& other)
const;
87 bool operator>=(
const MessageId& other)
const;
88 bool operator==(
const MessageId& other)
const;
89 bool operator!=(
const MessageId& other)
const;
91 int64_t ledgerId()
const;
92 int64_t entryId()
const;
93 int32_t batchIndex()
const;
94 int32_t partition()
const;
95 int32_t batchSize()
const;
98 friend class ConsumerImpl;
99 friend class ReaderImpl;
101 friend class MessageImpl;
102 friend class Commands;
103 friend class PartitionedProducerImpl;
104 friend class MultiTopicsConsumerImpl;
105 friend class UnAckedMessageTrackerEnabled;
106 friend class BatchAcknowledgementTracker;
107 friend class PulsarWrapper;
108 friend class PulsarFriend;
109 friend class NegativeAcksTracker;
112 friend PULSAR_PUBLIC std::ostream& operator<<(std::ostream& s,
const MessageId& messageId);
114 typedef std::shared_ptr<MessageIdImpl> MessageIdImplPtr;
115 MessageIdImplPtr impl_;
117 explicit MessageId(
const MessageIdImplPtr& impl);
120typedef std::vector<MessageId> MessageIdList;
Definition: MessageIdBuilder.h:54
Definition: MessageId.h:34
static MessageId deserialize(const std::string &serializedMessageId)
static const MessageId & earliest()
void setTopicName(const std::string &topicName)
const std::string & getTopicName() const
MessageId(int32_t partition, int64_t ledgerId, int64_t entryId, int32_t batchIndex)
void serialize(std::string &result) const
static const MessageId & latest()
Definition: Authentication.h:31