Example fixes (#96)

* Add example for kafka buffered producer

* Add notes regarding bool returned in produce failure callback

* Fix example names
This commit is contained in:
Matias Fontanini
2018-06-25 19:19:23 -07:00
committed by GitHub
parent 5c72f3fe28
commit 6158d932c0
8 changed files with 107 additions and 6 deletions

View File

@@ -99,7 +99,10 @@ public:
using ProduceSuccessCallback = std::function<void(const Message&)>;
/**
* Callback to indicate a message failed to be produced by the broker
* Callback to indicate a message failed to be produced by the broker.
*
* The returned bool indicates whether the BufferedProducer should try to produce
* the message again after each failure.
*/
using ProduceFailureCallback = std::function<bool(const Message&)>;