mirror of https://github.com/apache/kafka.git
MINOR: commit method doesn't exists for Consumer, but `commitSync` does. (#9585)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
ad7390f079
commit
ece01e6e83
|
@ -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>
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue