Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Proxy in ClientBuilder #196

Closed
yangmeijian opened this issue Mar 23, 2019 · 2 comments
Closed

Proxy in ClientBuilder #196

yangmeijian opened this issue Mar 23, 2019 · 2 comments
Labels

Comments

@yangmeijian
Copy link

Hi, I am trying to use the proxy method in ClientBuilder according to the new source code, but the IDE says it cannot resolve method 'proxy'. My code as below and would be appreciated for any input.

        ClientBuilder builder= new ClientBuilder()
                .name("Hosebird-Client-01")
                .proxy(proxyHost,proxyPort)//'proxy' is in red
                .hosts(hosebirdHosts)
                .authentication(hosebirdAuth)
                .endpoint(hosebirdEndpoint)
                .processor(new StringDelimitedProcessor(msgQueue));
@azdravkovski
Copy link

Hi @yangmeijian.
I'm trying to use this method as well and I realized today that the HBC artifact on the Maven repository hasn't been updated since 2014 (which is prior to adding the .proxy() method). As a result, the ClientBuilder class probably doesn't contain the method you're looking for.
In case you managed a workaround, can you please share your solution?
Thanks.

@velram
Copy link

velram commented Jul 31, 2019

Hi @yangmeijian & @azdravkovski - I'm also facing the same issue. Is there any solution that you guys have found out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants