Skip to content

Commit

Permalink
MINOR: Fix javadoc at org.apache.kafka.clients.producer.KafkaProducer…
Browse files Browse the repository at this point in the history
….InterceptorCallback#onCompletion (#7337)

Reviewers: Guozhang Wang <[email protected]>
  • Loading branch information
dongjinleekr authored Feb 20, 2020
1 parent 776565f commit b2aec94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/src/main/java/kafka/examples/Producer.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public DemoCallBack(long startTime, int key, String message) {
* 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) {
Expand Down

0 comments on commit b2aec94

Please sign in to comment.