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 2018/10/01 01:51:48 UTC
[GitHub] codelipenghui commented on issue #2551: Client switch connection
between different pulsar cluster.
codelipenghui commented on issue #2551: Client switch connection between different pulsar cluster.
URL: https://github.com/apache/pulsar/issues/2551#issuecomment-425770632
#2671 Refactored to simplify API for adding ServiceUrlProvider
use
```java
this.getPulsarClient().updateServiceUrl(newServiceUrl);
```
replace
```java
this.getPulsarClient().getConf().setServiceUrl(newServiceUrl);
this.getPulsarClient().reloadLookUp();
this.getPulsarClient().forceCloseConnection();
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services