librdkafka
The Apache Kafka C/C++ client library
|
Delivery Report callback class. More...
#include <rdkafkacpp.h>
Public Member Functions | |
virtual void | dr_cb (Message &message)=0 |
Delivery report callback. | |
Delivery Report callback class.
The delivery report callback will be called once for each message accepted by RdKafka::Producer::produce() (et.al) with RdKafka::Message::err() set to indicate the result of the produce request.
The callback is called when a message is succesfully produced or if librdkafka encountered a permanent failure, or the retry counter for temporary errors has been exhausted.
An application must call RdKafka::poll() at regular intervals to serve queued delivery report callbacks.