Browse Source

MINOR: Fix javadoc at org.apache.kafka.clients.producer.KafkaProducer.InterceptorCallback#onCompletion (#7337)

Reviewers: Guozhang Wang <wangguoz@gmail.com>
pull/8144/head
Lee Dongjin 5 years ago committed by GitHub
parent
commit
b2aec9496d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/src/main/java/kafka/examples/Producer.java

4
examples/src/main/java/kafka/examples/Producer.java

@ -112,8 +112,8 @@ class DemoCallBack implements Callback { @@ -112,8 +112,8 @@ class DemoCallBack implements Callback {
* be called when the record sent to the server has been acknowledged. When exception is not null in the callback,
* metadata will contain the special -1 value for all fields except for topicPartition, which will be valid.
*
* @param metadata The metadata for the record that was sent (i.e. the partition and offset). Null if an error
* occurred.
* @param metadata The metadata for the record that was sent (i.e. the partition and offset). An empty metadata
* with -1 value for all fields except for topicPartition will be returned if an error occurred.
* @param exception The exception thrown during processing of this record. Null if no error occurred.
*/
public void onCompletion(RecordMetadata metadata, Exception exception) {

Loading…
Cancel
Save