mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 03:28:01 +00:00
Allow polling with a timeout
This commit is contained in:
@@ -140,9 +140,20 @@ public:
|
||||
/**
|
||||
* \brief Polls on this handle
|
||||
*
|
||||
* This translates into a call to rd_kafka_poll
|
||||
* This translates into a call to rd_kafka_poll.
|
||||
*
|
||||
* The timeout used on this call is the one configured via Producer::set_timeout.
|
||||
*/
|
||||
int poll();
|
||||
|
||||
/**
|
||||
* \brief Polls on this handle
|
||||
*
|
||||
* This translates into a call to rd_kafka_poll.
|
||||
*
|
||||
* \param timeout The timeout used on this call
|
||||
*/
|
||||
int poll(std::chrono::milliseconds timeout);
|
||||
private:
|
||||
PayloadPolicy message_payload_policy_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user