mfontanini / cppkafka

Modern C++ Apache Kafka client library (wrapper for librdkafka)
BSD 2-Clause "Simplified" License
600 stars 206 forks source link

consumer commit message difference #184

Closed songziqin closed 5 years ago

songziqin commented 5 years ago

I want to know the different between the api consumer.commit(msg) and consumer.commit(). in my program, I have use the call the method consumer.poll_batch as follows: auto messages = consumer.poll_batch(1000); then I should call consumer.commit() . or for (auto message : messages) consumer.commit(mesage).