mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 11:37:50 +00:00
Add comment regarding flushing producer
This commit is contained in:
@@ -74,6 +74,9 @@ class Message;
|
|||||||
* // Write using a key on a fixed partition (42)
|
* // Write using a key on a fixed partition (42)
|
||||||
* producer.produce(MessageBuilder("some_topic").partition(42).key(key).payload(payload));
|
* producer.produce(MessageBuilder("some_topic").partition(42).key(key).payload(payload));
|
||||||
*
|
*
|
||||||
|
* // Flush the produced messages
|
||||||
|
* producer.flush();
|
||||||
|
*
|
||||||
* \endcode
|
* \endcode
|
||||||
*/
|
*/
|
||||||
class CPPKAFKA_API Producer : public KafkaHandleBase {
|
class CPPKAFKA_API Producer : public KafkaHandleBase {
|
||||||
|
|||||||
Reference in New Issue
Block a user