20 #ifndef LIB_MESSAGE_BATCH_H
21 #define LIB_MESSAGE_BATCH_H
22 #include <pulsar/Message.h>
23 #include <pulsar/defines.h>
35 MessageBatch& parseFrom(
const std::string& payload, uint32_t batchSize);
37 MessageBatch& parseFrom(
const SharedBuffer& payload, uint32_t batchSize);
39 const std::vector<Message>& messages();
42 typedef std::shared_ptr<MessageImpl> MessageImplPtr;
46 std::vector<Message> batch_;
49 #endif // LIB_MESSAGE_BATCH_H