public class ClientBuilderImpl extends Object implements ClientBuilder
| Constructor and Description |
|---|
ClientBuilderImpl() |
ClientBuilderImpl(ClientConfigurationData conf) |
public ClientBuilderImpl()
public ClientBuilderImpl(ClientConfigurationData conf)
public PulsarClient build() throws PulsarClientException
build in interface ClientBuilderPulsarClientExceptionpublic ClientBuilder clone()
clone in interface ClientBuilderclone in class Objectpublic ClientBuilder loadConf(Map<String,Object> config)
loadConf in interface ClientBuilderpublic ClientBuilder serviceUrl(String serviceUrl)
serviceUrl in interface ClientBuilderpublic ClientBuilder serviceUrlProvider(ServiceUrlProvider serviceUrlProvider)
serviceUrlProvider in interface ClientBuilderpublic ClientBuilder listenerName(String listenerName)
listenerName in interface ClientBuilderpublic ClientBuilder authentication(Authentication authentication)
authentication in interface ClientBuilderpublic ClientBuilder authentication(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException
authentication in interface ClientBuilderPulsarClientException.UnsupportedAuthenticationExceptionpublic ClientBuilder authentication(String authPluginClassName, Map<String,String> authParams) throws PulsarClientException.UnsupportedAuthenticationException
authentication in interface ClientBuilderPulsarClientException.UnsupportedAuthenticationExceptionpublic ClientBuilder operationTimeout(int operationTimeout, TimeUnit unit)
operationTimeout in interface ClientBuilderpublic ClientBuilder ioThreads(int numIoThreads)
ioThreads in interface ClientBuilderpublic ClientBuilder listenerThreads(int numListenerThreads)
listenerThreads in interface ClientBuilderpublic ClientBuilder connectionsPerBroker(int connectionsPerBroker)
connectionsPerBroker in interface ClientBuilderpublic ClientBuilder enableTcpNoDelay(boolean useTcpNoDelay)
enableTcpNoDelay in interface ClientBuilderpublic ClientBuilder enableTls(boolean useTls)
enableTls in interface ClientBuilderpublic ClientBuilder enableTlsHostnameVerification(boolean enableTlsHostnameVerification)
enableTlsHostnameVerification in interface ClientBuilderpublic ClientBuilder tlsTrustCertsFilePath(String tlsTrustCertsFilePath)
tlsTrustCertsFilePath in interface ClientBuilderpublic ClientBuilder allowTlsInsecureConnection(boolean tlsAllowInsecureConnection)
allowTlsInsecureConnection in interface ClientBuilderpublic ClientBuilder useKeyStoreTls(boolean useKeyStoreTls)
useKeyStoreTls in interface ClientBuilderpublic ClientBuilder sslProvider(String sslProvider)
sslProvider in interface ClientBuilderpublic ClientBuilder tlsTrustStoreType(String tlsTrustStoreType)
tlsTrustStoreType in interface ClientBuilderpublic ClientBuilder tlsTrustStorePath(String tlsTrustStorePath)
tlsTrustStorePath in interface ClientBuilderpublic ClientBuilder tlsTrustStorePassword(String tlsTrustStorePassword)
tlsTrustStorePassword in interface ClientBuilderpublic ClientBuilder tlsCiphers(Set<String> tlsCiphers)
tlsCiphers in interface ClientBuilderpublic ClientBuilder tlsProtocols(Set<String> tlsProtocols)
tlsProtocols in interface ClientBuilderpublic ClientBuilder statsInterval(long statsInterval, TimeUnit unit)
statsInterval in interface ClientBuilderpublic ClientBuilder maxConcurrentLookupRequests(int concurrentLookupRequests)
maxConcurrentLookupRequests in interface ClientBuilderpublic ClientBuilder maxLookupRequests(int maxLookupRequests)
maxLookupRequests in interface ClientBuilderpublic ClientBuilder maxLookupRedirects(int maxLookupRedirects)
maxLookupRedirects in interface ClientBuilderpublic ClientBuilder maxNumberOfRejectedRequestPerConnection(int maxNumberOfRejectedRequestPerConnection)
maxNumberOfRejectedRequestPerConnection in interface ClientBuilderpublic ClientBuilder keepAliveInterval(int keepAliveInterval, TimeUnit unit)
keepAliveInterval in interface ClientBuilderpublic ClientBuilder connectionTimeout(int duration, TimeUnit unit)
connectionTimeout in interface ClientBuilderpublic ClientBuilder startingBackoffInterval(long duration, TimeUnit unit)
startingBackoffInterval in interface ClientBuilderpublic ClientBuilder maxBackoffInterval(long duration, TimeUnit unit)
maxBackoffInterval in interface ClientBuilderpublic ClientConfigurationData getClientConfigurationData()
public ClientBuilder clock(Clock clock)
clock in interface ClientBuilderpublic ClientBuilder proxyServiceUrl(String proxyServiceUrl, ProxyProtocol proxyProtocol)
proxyServiceUrl in interface ClientBuilderpublic ClientBuilder enableTransaction(boolean enableTransaction)
enableTransaction in interface ClientBuilderCopyright © 2017–2020 Apache Software Foundation. All rights reserved.