mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Add CPPKAFKA_API macro to MessageBuilder declaration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user