19 #ifndef MESSAGE_BUILDER_H
20 #define MESSAGE_BUILDER_H
22 #include <pulsar/KeyValue.h>
23 #include <pulsar/Message.h>
24 #include <pulsar/defines.h>
37 typedef std::map<std::string, std::string> StringMap;
83 MessageBuilder& setProperty(
const std::string& name,
const std::string& value);
107 MessageBuilder& setDeliverAfter(
const std::chrono::milliseconds delay);
150 MessageBuilder& setReplicationClusters(
const std::vector<std::string>& clusters);
166 const char* data()
const;
167 std::size_t size()
const;
170 void checkMetadata();
171 static std::shared_ptr<MessageImpl> createMessageImpl();
172 Message::MessageImplPtr impl_;
174 friend class PulsarWrapper;