27 #pragma GCC visibility push(default)
37 explicit MessageId(int32_t partition, int64_t ledgerId, int64_t entryId, int32_t batchIndex);
52 void serialize(std::string& result)
const;
70 bool operator<(
const MessageId& other)
const;
71 bool operator<=(
const MessageId& other)
const;
72 bool operator>(
const MessageId& other)
const;
73 bool operator>=(
const MessageId& other)
const;
74 bool operator==(
const MessageId& other)
const;
75 bool operator!=(
const MessageId& other)
const;
78 friend class ConsumerImpl;
79 friend class ReaderImpl;
81 friend class MessageImpl;
82 friend class Commands;
83 friend class PartitionedProducerImpl;
84 friend class PartitionedConsumerImpl;
85 friend class MultiTopicsConsumerImpl;
86 friend class UnAckedMessageTrackerEnabled;
87 friend class BatchAcknowledgementTracker;
88 friend class PulsarWrapper;
89 friend class PulsarFriend;
91 friend std::ostream& operator<<(std::ostream& s,
const MessageId& messageId);
93 int64_t ledgerId()
const;
94 int64_t entryId()
const;
95 int32_t batchIndex()
const;
96 int32_t partition()
const;
98 typedef std::shared_ptr<MessageIdImpl> MessageIdImplPtr;
99 MessageIdImplPtr impl_;
103 #pragma GCC visibility pop
105 #endif // MESSAGE_ID_H