22#include <pulsar/defines.h>
34class BrokerEntryMetadata;
36class SingleMessageMetadata;
46 typedef std::map<std::string, std::string> StringMap;
73 const std::string&
getProperty(
const std::string& name)
const;
98#if defined(_MSC_VER) && !defined(NDEBUG)
99 const std::string& getDataAsString()
const;
198 bool operator==(
const Message& msg)
const;
201 typedef std::shared_ptr<MessageImpl> MessageImplPtr;
202 MessageImplPtr impl_;
205 Message(
const MessageId& messageId, proto::BrokerEntryMetadata& brokerEntryMetadata,
206 proto::MessageMetadata& metadata, SharedBuffer& payload);
209 proto::MessageMetadata& metadata, SharedBuffer& payload,
210 proto::SingleMessageMetadata& singleMetadata,
const std::shared_ptr<std::string>& topicName);
211 friend class PartitionedProducerImpl;
212 friend class MultiTopicsConsumerImpl;
214 friend class ConsumerImpl;
215 friend class ProducerImpl;
216 friend class Commands;
217 friend class BatchMessageContainerBase;
218 friend class BatchAcknowledgementTracker;
219 friend class PulsarWrapper;
221 friend struct OpSendMsg;
223 friend PULSAR_PUBLIC std::ostream& operator<<(std::ostream& s,
const StringMap& map);
224 friend PULSAR_PUBLIC std::ostream& operator<<(std::ostream& s,
const Message& msg);
225 friend class PulsarFriend;
Definition MessageBatch.h:29
Definition MessageBuilder.h:33
const std::string & getPartitionKey() const
bool hasPartitionKey() const
KeyValue getKeyValueData() const
void setMessageId(const MessageId &messageId) const
std::string getDataAsString() const
int64_t getLongSchemaVersion() const
bool hasSchemaVersion() const
const std::string & getProperty(const std::string &name) const
uint64_t getEventTimestamp() const
Message(const MessageId &messageId, proto::BrokerEntryMetadata &brokerEntryMetadata, proto::MessageMetadata &metadata, SharedBuffer &payload, proto::SingleMessageMetadata &singleMetadata, const std::shared_ptr< std::string > &topicName)
Used for Batch Messages.
std::size_t getLength() const
const std::string & getOrderingKey() const
const void * getData() const
uint64_t getPublishTimestamp() const
const std::string & getSchemaVersion() const
const int getRedeliveryCount() const
bool hasOrderingKey() const
bool hasProperty(const std::string &name) const
const MessageId & getMessageId() const
const StringMap & getProperties() const
const std::string & getTopicName() const
Definition MessageId.h:34
Definition Authentication.h:31