merlimat commented on issue #1089: PIP-12 Introduce builder for creating 
Producer Consumer Reader
URL: https://github.com/apache/incubator-pulsar/pull/1089#issuecomment-365505550
 
 
   >  Once we have subscription for topics and pattern, we need add them in.
   
   Yes, the idea was to have different ways to specify: 
   ```java
   // Single topic
   client.newConsumer.topic(MY_TOPIC).subscriptioName(SUB).build();
   
   // List of topics
   List<String> myList = ...;
   client.newConsumer.topics(myList).subscriptioName(SUB).build();
   
   // Regex
   client.newConsumer.topicsRegex("test.*").subscriptioName(SUB).build();
   ```

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


With regards,
Apache Git Services

Reply via email to