Add CPPKAFKA_API macro to MessageBuilder declaration

This commit is contained in:
Matias Fontanini
2017-04-15 17:25:31 -07:00
parent 401a60d016
commit c99c8bbb05

View File

@@ -34,6 +34,7 @@
#include "buffer.h" #include "buffer.h"
#include "topic.h" #include "topic.h"
#include "partition.h" #include "partition.h"
#include "macros.h"
namespace cppkafka { namespace cppkafka {
@@ -42,6 +43,9 @@ namespace cppkafka {
* *
* Allows building a message including topic, partition, key, payload, etc. * Allows building a message including topic, partition, key, payload, etc.
* *
* The topic and buffer objects used <b>must</b> be kept alive while the message builder object
* is still being used.
*
* Example: * Example:
* *
* \code * \code
@@ -52,7 +56,7 @@ namespace cppkafka {
* producer.produce(MessageBuilder(topic).partition(5).payload(payload)); * producer.produce(MessageBuilder(topic).partition(5).payload(payload));
* \endcode * \endcode
*/ */
class MessageBuilder { class CPPKAFKA_API MessageBuilder {
public: public:
/** /**
* Construct a MessageBuilder * Construct a MessageBuilder