26#include <pulsar/defines.h>
45 explicit MessageId(int32_t partition, int64_t ledgerId, int64_t entryId, int32_t batchIndex);
78 bool operator<(
const MessageId& other)
const;
79 bool operator<=(
const MessageId& other)
const;
80 bool operator>(
const MessageId& other)
const;
81 bool operator>=(
const MessageId& other)
const;
82 bool operator==(
const MessageId& other)
const;
83 bool operator!=(
const MessageId& other)
const;
85 int64_t ledgerId()
const;
86 int64_t entryId()
const;
87 int32_t batchIndex()
const;
88 int32_t partition()
const;
91 friend class ConsumerImpl;
92 friend class ReaderImpl;
94 friend class MessageImpl;
95 friend class Commands;
96 friend class PartitionedProducerImpl;
97 friend class PartitionedConsumerImpl;
98 friend class MultiTopicsConsumerImpl;
99 friend class UnAckedMessageTrackerEnabled;
100 friend class BatchAcknowledgementTracker;
101 friend class PulsarWrapper;
102 friend class PulsarFriend;
103 friend class NegativeAcksTracker;
105 friend PULSAR_PUBLIC std::ostream& operator<<(std::ostream& s,
const MessageId& messageId);
107 typedef std::shared_ptr<MessageIdImpl> MessageIdImplPtr;
108 MessageIdImplPtr impl_;
Definition: MessageId.h:32
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:30