Skip to content

Commit

Permalink
fix example code of java client (apache#5691)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdx0726 authored and Jennifer88huang-zz committed Nov 19, 2019
1 parent 5d6b78d commit dd9e669
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site2/docs/client-libraries-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ In order to better describe their differences, assuming you have a topic named "
```java
Producer<String> producer = client.newProducer(Schema.STRING)
.topic("my-topic")
.enableBatch(false)
.enableBatching(false)
.create();
// 3 messages with "key-1", 3 messages with "key-2", 2 messages with "key-3" and 2 messages with "key-4"
producer.newMessage().key("key-1").value("message-1-1").send();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ In order to better describe their differences, assuming you have a topic named "
```java
Producer<String> producer = client.newProducer(Schema.STRING)
.topic("my-topic")
.enableBatch(false)
.enableBatching(false)
.create();
// 3 messages with "key-1", 3 messages with "key-2", 2 messages with "key-3" and 2 messages with "key-4"
producer.newMessage().key("key-1").value("message-1-1").send();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ In order to better describe their differences, assuming you have a topic named "
```java
Producer<String> producer = client.newProducer(Schema.STRING)
.topic("my-topic")
.enableBatch(false)
.enableBatching(false)
.create();
// 3 messages with "key-1", 3 messages with "key-2", 2 messages with "key-3" and 2 messages with "key-4"
producer.newMessage().key("key-1").value("message-1-1").send();
Expand Down

0 comments on commit dd9e669

Please sign in to comment.