类 ClientBuilderImpl
java.lang.Object
org.apache.pulsar.client.impl.ClientBuilderImpl
- 所有已实现的接口:
Serializable,Cloneable,ClientBuilder
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明allowTlsInsecureConnection(boolean tlsAllowInsecureConnection) authentication(String authPluginClassName, String authParamsString) authentication(String authPluginClassName, Map<String, String> authParams) authentication(Authentication authentication) build()clone()connectionMaxIdleSeconds(int connectionMaxIdleSeconds) connectionsPerBroker(int connectionsPerBroker) connectionTimeout(int duration, TimeUnit unit) description(String description) Set the description.dnsLookupBind(String address, int port) dnsServerAddresses(List<InetSocketAddress> addresses) enableBusyWait(boolean enableBusyWait) enableTcpNoDelay(boolean useTcpNoDelay) enableTls(boolean useTls) enableTlsHostnameVerification(boolean enableTlsHostnameVerification) enableTransaction(boolean enableTransaction) ioThreads(int numIoThreads) keepAliveInterval(int keepAliveInterval, TimeUnit unit) listenerName(String listenerName) listenerThreads(int numListenerThreads) lookupTimeout(int lookupTimeout, TimeUnit unit) maxBackoffInterval(long duration, TimeUnit unit) maxConcurrentLookupRequests(int concurrentLookupRequests) maxLookupRedirects(int maxLookupRedirects) maxLookupRequests(int maxLookupRequests) maxNumberOfRejectedRequestPerConnection(int maxNumberOfRejectedRequestPerConnection) memoryLimit(long memoryLimit, SizeUnit unit) openTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry) operationTimeout(int operationTimeout, TimeUnit unit) proxyServiceUrl(String proxyServiceUrl, ProxyProtocol proxyProtocol) serviceUrl(String serviceUrl) serviceUrlProvider(ServiceUrlProvider serviceUrlProvider) socks5ProxyAddress(InetSocketAddress socks5ProxyAddress) socks5ProxyPassword(String socks5ProxyPassword) socks5ProxyUsername(String socks5ProxyUsername) sslProvider(String sslProvider) startingBackoffInterval(long duration, TimeUnit unit) statsInterval(long statsInterval, TimeUnit unit) tlsCertificateFilePath(String tlsCertificateFilePath) tlsCiphers(Set<String> tlsCiphers) tlsKeyFilePath(String tlsKeyFilePath) tlsKeyStorePassword(String tlsKeyStorePassword) tlsKeyStorePath(String tlsTrustStorePath) tlsKeyStoreType(String tlsKeyStoreType) tlsProtocols(Set<String> tlsProtocols) tlsTrustCertsFilePath(String tlsTrustCertsFilePath) tlsTrustStorePassword(String tlsTrustStorePassword) tlsTrustStorePath(String tlsTrustStorePath) tlsTrustStoreType(String tlsTrustStoreType) useKeyStoreTls(boolean useKeyStoreTls)
-
构造器详细资料
-
ClientBuilderImpl
public ClientBuilderImpl() -
ClientBuilderImpl
-
-
方法详细资料
-
build
- 指定者:
build在接口中ClientBuilder- 抛出:
PulsarClientException
-
clone
- 指定者:
clone在接口中ClientBuilder- 覆盖:
clone在类中Object
-
loadConf
- 指定者:
loadConf在接口中ClientBuilder
-
serviceUrl
- 指定者:
serviceUrl在接口中ClientBuilder
-
serviceUrlProvider
- 指定者:
serviceUrlProvider在接口中ClientBuilder
-
listenerName
- 指定者:
listenerName在接口中ClientBuilder
-
connectionMaxIdleSeconds
- 指定者:
connectionMaxIdleSeconds在接口中ClientBuilder
-
authentication
- 指定者:
authentication在接口中ClientBuilder
-
openTelemetry
- 指定者:
openTelemetry在接口中ClientBuilder
-
authentication
public ClientBuilder authentication(String authPluginClassName, String authParamsString) throws PulsarClientException.UnsupportedAuthenticationException -
authentication
public ClientBuilder authentication(String authPluginClassName, Map<String, String> authParams) throws PulsarClientException.UnsupportedAuthenticationException -
operationTimeout
- 指定者:
operationTimeout在接口中ClientBuilder
-
lookupTimeout
- 指定者:
lookupTimeout在接口中ClientBuilder
-
ioThreads
- 指定者:
ioThreads在接口中ClientBuilder
-
listenerThreads
- 指定者:
listenerThreads在接口中ClientBuilder
-
connectionsPerBroker
- 指定者:
connectionsPerBroker在接口中ClientBuilder
-
enableTcpNoDelay
- 指定者:
enableTcpNoDelay在接口中ClientBuilder
-
enableTls
- 指定者:
enableTls在接口中ClientBuilder
-
tlsKeyFilePath
- 指定者:
tlsKeyFilePath在接口中ClientBuilder
-
tlsCertificateFilePath
- 指定者:
tlsCertificateFilePath在接口中ClientBuilder
-
enableTlsHostnameVerification
- 指定者:
enableTlsHostnameVerification在接口中ClientBuilder
-
tlsTrustCertsFilePath
- 指定者:
tlsTrustCertsFilePath在接口中ClientBuilder
-
allowTlsInsecureConnection
- 指定者:
allowTlsInsecureConnection在接口中ClientBuilder
-
useKeyStoreTls
- 指定者:
useKeyStoreTls在接口中ClientBuilder
-
sslProvider
- 指定者:
sslProvider在接口中ClientBuilder
-
tlsKeyStoreType
- 指定者:
tlsKeyStoreType在接口中ClientBuilder
-
tlsKeyStorePath
- 指定者:
tlsKeyStorePath在接口中ClientBuilder
-
tlsKeyStorePassword
- 指定者:
tlsKeyStorePassword在接口中ClientBuilder
-
tlsTrustStoreType
- 指定者:
tlsTrustStoreType在接口中ClientBuilder
-
tlsTrustStorePath
- 指定者:
tlsTrustStorePath在接口中ClientBuilder
-
tlsTrustStorePassword
- 指定者:
tlsTrustStorePassword在接口中ClientBuilder
-
tlsCiphers
- 指定者:
tlsCiphers在接口中ClientBuilder
-
tlsProtocols
- 指定者:
tlsProtocols在接口中ClientBuilder
-
statsInterval
- 指定者:
statsInterval在接口中ClientBuilder
-
maxConcurrentLookupRequests
- 指定者:
maxConcurrentLookupRequests在接口中ClientBuilder
-
maxLookupRequests
- 指定者:
maxLookupRequests在接口中ClientBuilder
-
maxLookupRedirects
- 指定者:
maxLookupRedirects在接口中ClientBuilder
-
maxNumberOfRejectedRequestPerConnection
public ClientBuilder maxNumberOfRejectedRequestPerConnection(int maxNumberOfRejectedRequestPerConnection) -
keepAliveInterval
- 指定者:
keepAliveInterval在接口中ClientBuilder
-
connectionTimeout
- 指定者:
connectionTimeout在接口中ClientBuilder
-
startingBackoffInterval
- 指定者:
startingBackoffInterval在接口中ClientBuilder
-
maxBackoffInterval
- 指定者:
maxBackoffInterval在接口中ClientBuilder
-
enableBusyWait
- 指定者:
enableBusyWait在接口中ClientBuilder
-
getClientConfigurationData
-
memoryLimit
- 指定者:
memoryLimit在接口中ClientBuilder
-
clock
- 指定者:
clock在接口中ClientBuilder
-
proxyServiceUrl
- 指定者:
proxyServiceUrl在接口中ClientBuilder
-
enableTransaction
- 指定者:
enableTransaction在接口中ClientBuilder
-
dnsLookupBind
- 指定者:
dnsLookupBind在接口中ClientBuilder
-
dnsServerAddresses
- 指定者:
dnsServerAddresses在接口中ClientBuilder
-
socks5ProxyAddress
- 指定者:
socks5ProxyAddress在接口中ClientBuilder
-
socks5ProxyUsername
- 指定者:
socks5ProxyUsername在接口中ClientBuilder
-
socks5ProxyPassword
- 指定者:
socks5ProxyPassword在接口中ClientBuilder
-
description
Set the description.By default, when the client connects to the broker, a version string like "Pulsar-Java-v<x.y.z>" will be carried and saved by the broker. The client version string could be queried from the topic stats.
This method provides a way to add more description to a specific PulsarClient instance. If it's configured, the description will be appended to the original client version string, with '-' as the separator.
For example, if the client version is 3.0.0, and the description is "forked", the final client version string will be "Pulsar-Java-v3.0.0-forked".
- 参数:
description- the description of the current PulsarClient instance- 抛出:
IllegalArgumentException- if the length of description exceeds 64
-