Package | Description |
---|---|
org.apache.pulsar.client.api | |
org.apache.pulsar.client.internal |
Modifier and Type | Method and Description |
---|---|
ClientBuilder |
ClientBuilder.allowTlsInsecureConnection(boolean allowTlsInsecureConnection)
Configure whether the Pulsar client accept untrusted TLS certificate from broker (default: false)
|
ClientBuilder |
ClientBuilder.authentication(Authentication authentication)
Set the authentication provider to use in the Pulsar client instance.
|
ClientBuilder |
ClientBuilder.authentication(String authPluginClassName,
Map<String,String> authParams)
Configure the authentication provider to use in the Pulsar client instance
using a config map.
|
ClientBuilder |
ClientBuilder.authentication(String authPluginClassName,
String authParamsString)
Configure the authentication provider to use in the Pulsar client instance.
|
static ClientBuilder |
PulsarClient.builder()
Get a new builder instance that can used to configure and build a
PulsarClient instance. |
ClientBuilder |
ClientBuilder.clone()
Create a copy of the current client builder.
|
ClientBuilder |
ClientBuilder.connectionsPerBroker(int connectionsPerBroker)
Sets the max number of connection that the client library will open to a single broker.
|
ClientBuilder |
ClientBuilder.connectionTimeout(int duration,
TimeUnit unit)
Set the duration of time to wait for a connection to a broker to be established.
|
ClientBuilder |
ClientBuilder.enableTcpNoDelay(boolean enableTcpNoDelay)
Configure whether to use TCP no-delay flag on the connection, to disable Nagle algorithm.
|
ClientBuilder |
ClientBuilder.enableTls(boolean enableTls)
Deprecated.
use "pulsar+ssl://" in serviceUrl to enable
|
ClientBuilder |
ClientBuilder.enableTlsHostnameVerification(boolean enableTlsHostnameVerification)
It allows to validate hostname verification when client connects to broker over tls.
|
ClientBuilder |
ClientBuilder.ioThreads(int numIoThreads)
Set the number of threads to be used for handling connections to brokers (default: 1 thread)
|
ClientBuilder |
ClientBuilder.keepAliveInterval(int keepAliveIntervalSeconds,
TimeUnit unit)
Set keep alive interval in seconds for each client-broker-connection.
|
ClientBuilder |
ClientBuilder.listenerThreads(int numListenerThreads)
Set the number of threads to be used for message listeners (default: 1 thread).
|
ClientBuilder |
ClientBuilder.loadConf(Map<String,Object> config)
Load the configuration from provided config map.
|
ClientBuilder |
ClientBuilder.maxConcurrentLookupRequests(int maxConcurrentLookupRequests)
Number of concurrent lookup-requests allowed to send on each broker-connection to prevent overload on broker.
|
ClientBuilder |
ClientBuilder.maxLookupRequests(int maxLookupRequests)
Number of max lookup-requests allowed on each broker-connection to prevent overload on broker.
|
ClientBuilder |
ClientBuilder.maxNumberOfRejectedRequestPerConnection(int maxNumberOfRejectedRequestPerConnection)
Set max number of broker-rejected requests in a certain time-frame (30 seconds) after which current connection
will be closed and client creates a new connection that give chance to connect a different broker (default:
50)
|
ClientBuilder |
ClientBuilder.operationTimeout(int operationTimeout,
TimeUnit unit)
Set the operation timeout (default: 30 seconds)
|
ClientBuilder |
ClientBuilder.serviceUrl(String serviceUrl)
Configure the service URL for the Pulsar service.
|
ClientBuilder |
ClientBuilder.serviceUrlProvider(ServiceUrlProvider serviceUrlProvider)
Configure the service URL provider for Pulsar service
|
ClientBuilder |
ClientBuilder.statsInterval(long statsInterval,
TimeUnit unit)
Set the interval between each stat info (default: 60 seconds) Stats will be activated with positive
statsIntervalSeconds It should be set to at least 1 second
|
ClientBuilder |
ClientBuilder.tlsTrustCertsFilePath(String tlsTrustCertsFilePath)
Set the path to the trusted TLS certificate file
|
Modifier and Type | Method and Description |
---|---|
static ClientBuilder |
DefaultImplementation.newClientBuilder() |
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.