kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkaranta...@apache.org
Subject [kafka] branch 2.7 updated: KAFKA-9587: Add omitted configs in KafkaProducer javadoc (#8150)
Date Wed, 14 Oct 2020 05:29:52 GMT
This is an automated email from the ASF dual-hosted git repository.

kkarantasis pushed a commit to branch 2.7
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.7 by this push:
     new 4872ea5  KAFKA-9587: Add omitted configs in KafkaProducer javadoc (#8150)
4872ea5 is described below

commit 4872ea588ac43e6d9fb5c615af367d59bdd31b12
Author: Lee Dongjin <dongjin@apache.org>
AuthorDate: Wed Oct 14 14:23:43 2020 +0900

    KAFKA-9587: Add omitted configs in KafkaProducer javadoc (#8150)
    
    Simple javadoc fix that aligns the properties with the text.
    
    Reviewers: Konstantine Karantasis <k.karantasis@gmail.com>
---
 .../src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
index ebd1746..a7e867e 100644
--- a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
+++ b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
@@ -101,6 +101,8 @@ import java.util.concurrent.atomic.AtomicReference;
  * Properties props = new Properties();
  * props.put("bootstrap.servers", "localhost:9092");
  * props.put("acks", "all");
+ * props.put("retries", 0);
+ * props.put("linger.ms", 1);
  * props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
  * props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
  *


Mime
View raw message