mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 11:37:50 +00:00
Add commit methods to Consumer
This commit is contained in:
@@ -24,10 +24,14 @@ public:
|
||||
|
||||
void assign(const TopicPartitionList& topic_partitions);
|
||||
|
||||
void commit(const Message& msg);
|
||||
void async_commit(const Message& msg);
|
||||
|
||||
Message poll();
|
||||
private:
|
||||
static const std::chrono::milliseconds DEFAULT_TIMEOUT;
|
||||
|
||||
void commit(const Message& msg, bool async);
|
||||
void check_error(rd_kafka_resp_err_t error);
|
||||
|
||||
std::chrono::milliseconds timeout_ms_;
|
||||
|
||||
Reference in New Issue
Block a user