You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/18 10:17:31 UTC

[GitHub] [pulsar] huangdx0726 opened a new issue #5681: java client example error

huangdx0726 opened a new issue #5681: java client example error
URL: https://github.com/apache/pulsar/issues/5681
 
 
   **Describe the bug**
   java client example error
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to 'http://pulsar.apache.org/docs/en/client-libraries-java/'
   2. Scroll down to 'Subscription modes'
   
   copy the example code 
   ```
   Producer<String> producer = client.newProducer(Schema.STRING)
           .topic("my-topic")
           .enableBatch(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();
   producer.newMessage().key("key-1").value("message-1-2").send();
   producer.newMessage().key("key-1").value("message-1-3").send();
   producer.newMessage().key("key-2").value("message-2-1").send();
   producer.newMessage().key("key-2").value("message-2-2").send();
   producer.newMessage().key("key-2").value("message-2-3").send();
   producer.newMessage().key("key-3").value("message-3-1").send();
   producer.newMessage().key("key-3").value("message-3-2").send();
   producer.newMessage().key("key-4").value("message-4-1").send();
   producer.newMessage().key("key-4").value("message-4-2").send();
   ```
   
   display no method enableBatch.Maybe the methodName is enableBatching.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services