public class ProtonClientOptions extends NetClientOptions
ProtonClient connect operations.DEFAULT_HOSTNAME_VERIFICATION_ALGORITHM, DEFAULT_RECONNECT_ATTEMPTS, DEFAULT_RECONNECT_INTERVALDEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALLDEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_USE_ALPN, DEFAULT_WRITE_IDLE_TIMEOUTDEFAULT_LOG_ACTIVITY_FORMAT, DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS| Constructor and Description |
|---|
ProtonClientOptions() |
ProtonClientOptions(JsonObject json)
Create options from JSON
|
ProtonClientOptions(ProtonClientOptions other)
Copy constructor
|
addNonProxyHost, getApplicationLayerProtocols, getHostnameVerificationAlgorithm, getReconnectAttempts, getReconnectInterval, setActivityLogDataFormat, setApplicationLayerProtocols, setNonProxyHosts, setReadIdleTimeout, setWriteIdleTimeoutgetConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getProxyOptions, isTrustAllgetCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getReadIdleTimeout, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTrustOptions, getTrustStoreOptions, getWriteIdleTimeout, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpngetActivityLogDataFormat, getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePortpublic ProtonClientOptions()
public ProtonClientOptions(ProtonClientOptions other)
other - the options to copypublic ProtonClientOptions(JsonObject json)
json - the JSONpublic JsonObject toJson()
toJson in class NetClientOptionspublic Set<String> getEnabledSaslMechanisms()
public ProtonClientOptions addEnabledSaslMechanism(String saslMechanism)
saslMechanism - the sasl mechanism name .public ProtonClientOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize in class NetClientOptionspublic ProtonClientOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in class NetClientOptionspublic ProtonClientOptions setReuseAddress(boolean reuseAddress)
setReuseAddress in class NetClientOptionspublic ProtonClientOptions setTrafficClass(int trafficClass)
setTrafficClass in class NetClientOptionspublic ProtonClientOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in class NetClientOptionspublic ProtonClientOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive in class NetClientOptionspublic ProtonClientOptions setSoLinger(int soLinger)
setSoLinger in class NetClientOptionspublic ProtonClientOptions setIdleTimeout(int idleTimeout)
setIdleTimeout in class NetClientOptionspublic ProtonClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit in class NetClientOptionspublic ProtonClientOptions setSsl(boolean ssl)
setSsl in class NetClientOptionspublic ProtonClientOptions setKeyStoreOptions(JksOptions options)
setKeyStoreOptions in class NetClientOptionspublic ProtonClientOptions setPfxKeyCertOptions(PfxOptions options)
setPfxKeyCertOptions in class NetClientOptionspublic ProtonClientOptions setPemKeyCertOptions(PemKeyCertOptions options)
setPemKeyCertOptions in class NetClientOptionspublic ProtonClientOptions setTrustStoreOptions(JksOptions options)
setTrustStoreOptions in class NetClientOptionspublic ProtonClientOptions setPemTrustOptions(PemTrustOptions options)
setPemTrustOptions in class NetClientOptionspublic ProtonClientOptions setPfxTrustOptions(PfxOptions options)
setPfxTrustOptions in class NetClientOptionspublic ProtonClientOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite in class NetClientOptionspublic ProtonClientOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath in class NetClientOptionsNullPointerExceptionpublic ProtonClientOptions addCrlValue(Buffer crlValue) throws NullPointerException
addCrlValue in class NetClientOptionsNullPointerExceptionpublic ProtonClientOptions setTrustAll(boolean trustAll)
setTrustAll in class NetClientOptionspublic ProtonClientOptions setConnectTimeout(int connectTimeout)
setConnectTimeout in class NetClientOptionspublic ProtonClientOptions setReconnectAttempts(int attempts)
setReconnectAttempts in class NetClientOptionspublic ProtonClientOptions setReconnectInterval(long interval)
setReconnectInterval in class NetClientOptionspublic ProtonClientOptions setUseAlpn(boolean useAlpn)
setUseAlpn in class NetClientOptionspublic ProtonClientOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol in class NetClientOptionspublic ProtonClientOptions setHostnameVerificationAlgorithm(String hostnameVerificationAlgorithm)
setHostnameVerificationAlgorithm in class NetClientOptionspublic ProtonClientOptions setKeyCertOptions(KeyCertOptions options)
setKeyCertOptions in class NetClientOptionspublic ProtonClientOptions setLogActivity(boolean logEnabled)
setLogActivity in class NetClientOptionspublic ProtonClientOptions setMetricsName(String metricsName)
setMetricsName in class NetClientOptionspublic ProtonClientOptions setProxyOptions(ProxyOptions proxyOptions)
setProxyOptions in class NetClientOptionspublic ProtonClientOptions setTrustOptions(TrustOptions options)
setTrustOptions in class NetClientOptionspublic ProtonClientOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions in class NetClientOptionspublic ProtonClientOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions in class NetClientOptionspublic ProtonClientOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
setSslEngineOptions in class NetClientOptionspublic ProtonClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout in class NetClientOptionspublic ProtonClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit in class NetClientOptionspublic ProtonClientOptions setLocalAddress(String localAddress)
setLocalAddress in class NetClientOptionspublic ProtonClientOptions setReusePort(boolean reusePort)
setReusePort in class NetClientOptionspublic ProtonClientOptions setTcpCork(boolean tcpCork)
setTcpCork in class NetClientOptionspublic ProtonClientOptions setTcpFastOpen(boolean tcpFastOpen)
setTcpFastOpen in class NetClientOptionspublic ProtonClientOptions setTcpQuickAck(boolean tcpQuickAck)
setTcpQuickAck in class NetClientOptionspublic ProtonClientOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol in class NetClientOptionspublic ProtonClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols in class NetClientOptionspublic ProtonClientOptions setVirtualHost(String virtualHost)
ProtonClient.connect(java.lang.String, int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.proton.ProtonConnection>>) will be used for both, with SNI performed
implicit where a FQDN was specified.
The SNI server name can also be overridden explicitly using setSniServerName(String).virtualHost - hostname to setpublic String getVirtualHost()
setVirtualHost(String).public ProtonClientOptions setSniServerName(String sniServerName)
virtualhost or SNI server name is explicitly
overridden, the hostname specified in ProtonClient.connect(java.lang.String, int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.proton.ProtonConnection>>) will be used, with SNI performed implicitly
where a FQDN was specified.
This method should typically only be needed to set different values for the [virtual] hostname and SNI server name.sniServerName - hostname to set as SNI server namepublic String getSniServerName()
setSniServerName(String).public ProtonClientOptions setHeartbeat(int heartbeat)
heartbeat - hearthbeat maximum delaypublic int getHeartbeat()
public ProtonClientOptions setMaxFrameSize(int maxFrameSize)
If this property is not set explicitly, a reasonable default value is used.
Setting this property to a negative value will result in no maximum frame size being announced at all.
maxFrameSize - The frame size in bytes.public int getMaxFrameSize()
If this property is not set explicitly, a reasonable default value is used.
Copyright © 2022 Eclipse. All rights reserved.