MINOR: commit method doesn't exists for Consumer, but `commitSync` does. (#9585)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Nikolay 2020-11-11 14:57:07 +03:00 committed by GitHub
parent ad7390f079
commit ece01e6e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ public class KafkaProducer<K, V> implements Producer<K, V> {
* for(ConsumerRecord<String, String> record: consumer.poll(100))
* producer.send(new ProducerRecord("my-topic", record.key(), record.value());
* producer.flush();
* consumer.commit();
* consumer.commitSync();
* }
* </pre>
*