merlimat commented on a change in pull request #2004: Issue 1943: remove
serializable from builders and add loadData to load configuration from a config
map
URL: https://github.com/apache/incubator-pulsar/pull/2004#discussion_r196993758
##########
File path:
pulsar-client/src/main/java/org/apache/pulsar/client/api/PulsarClient.java
##########
@@ -43,6 +46,17 @@ public static ClientBuilder builder() {
return new ClientBuilderImpl();
}
+ /**
+ * Create a pulsar client builder instance with a provided configuration
map.
+ *
+ * @param config configuration map.
+ * @return client builder
+ * @since 2.1.0
+ */
+ static ClientBuilder builder(Map<String, Object> config) {
Review comment:
I mean the reverse :)
```java
PulsarClient client = PulsarClient.builder().loadConf(..)
client.newProducer().loadConf(xxx);
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services