This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 693ea90  Use builder methods in getting started docs (#1942)
693ea90 is described below

commit 693ea906c33b8ca83a8532644fec8c19e482e5a0
Author: Ivan Kelly <[email protected]>
AuthorDate: Tue Jun 19 20:10:52 2018 +0200

    Use builder methods in getting started docs (#1942)
    
    * Fix topic name in getting started documentation
    
    It was "my-topic", when it should have been
    persistent://public/default/my-topic.
    
    * Remove topic changes
---
 site/docs/latest/getting-started/LocalCluster.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site/docs/latest/getting-started/LocalCluster.md 
b/site/docs/latest/getting-started/LocalCluster.md
index 1259beb..af2a89e 100644
--- a/site/docs/latest/getting-started/LocalCluster.md
+++ b/site/docs/latest/getting-started/LocalCluster.md
@@ -84,8 +84,8 @@ Here's an example producer for a Pulsar {% popover topic %} 
using the [Java](../
 ```java
 String localClusterUrl = "pulsar://localhost:6650";
 
-PulsarClient client = PulsarClient.create(localClusterUrl);
-Producer producer = client.createProducer("my-topic");
+PulsarClient client = 
PulsarClient.builder().serviceURL(localClusterUrl).build();
+Producer<byte[]> producer = client.newProducer().topic("my-topic").create();
 ```
 
 Here's an example [Python](../../clients/Python) producer:

Reply via email to