mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 02:57:53 +00:00
Add CPPKAFKA_API macro to MessageBuilder declaration
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "buffer.h"
|
||||
#include "topic.h"
|
||||
#include "partition.h"
|
||||
#include "macros.h"
|
||||
|
||||
namespace cppkafka {
|
||||
|
||||
@@ -42,6 +43,9 @@ namespace cppkafka {
|
||||
*
|
||||
* 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:
|
||||
*
|
||||
* \code
|
||||
@@ -52,7 +56,7 @@ namespace cppkafka {
|
||||
* producer.produce(MessageBuilder(topic).partition(5).payload(payload));
|
||||
* \endcode
|
||||
*/
|
||||
class MessageBuilder {
|
||||
class CPPKAFKA_API MessageBuilder {
|
||||
public:
|
||||
/**
|
||||
* Construct a MessageBuilder
|
||||
|
||||
Reference in New Issue
Block a user