public class ProtonClientOptions extends NetClientOptions
ProtonClient
connect operations.DEFAULT_HOSTNAME_VERIFICATION_ALGORITHM, DEFAULT_RECONNECT_ATTEMPTS, DEFAULT_RECONNECT_INTERVAL
DEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALL
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, 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_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
|
getHostnameVerificationAlgorithm, getReconnectAttempts, getReconnectInterval
getConnectTimeout, getLocalAddress, getMetricsName, getProxyOptions, isTrustAll
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTrustOptions, getTrustStoreOptions, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePort
public ProtonClientOptions()
public ProtonClientOptions(ProtonClientOptions other)
other
- the options to copypublic ProtonClientOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
toJson
in class ClientOptionsBase
public Set<String> getEnabledSaslMechanisms()
public ProtonClientOptions addEnabledSaslMechanism(String saslMechanism)
saslMechanism
- the sasl mechanism name .public ProtonClientOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize
in class NetClientOptions
public ProtonClientOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in class NetClientOptions
public ProtonClientOptions setReuseAddress(boolean reuseAddress)
setReuseAddress
in class NetClientOptions
public ProtonClientOptions setTrafficClass(int trafficClass)
setTrafficClass
in class NetClientOptions
public ProtonClientOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
in class NetClientOptions
public ProtonClientOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive
in class NetClientOptions
public ProtonClientOptions setSoLinger(int soLinger)
setSoLinger
in class NetClientOptions
public ProtonClientOptions setIdleTimeout(int idleTimeout)
setIdleTimeout
in class NetClientOptions
public ProtonClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit
in class NetClientOptions
public ProtonClientOptions setSsl(boolean ssl)
setSsl
in class NetClientOptions
public ProtonClientOptions setKeyStoreOptions(JksOptions options)
setKeyStoreOptions
in class NetClientOptions
public ProtonClientOptions setPfxKeyCertOptions(PfxOptions options)
setPfxKeyCertOptions
in class NetClientOptions
public ProtonClientOptions setPemKeyCertOptions(PemKeyCertOptions options)
setPemKeyCertOptions
in class NetClientOptions
public ProtonClientOptions setTrustStoreOptions(JksOptions options)
setTrustStoreOptions
in class NetClientOptions
public ProtonClientOptions setPemTrustOptions(PemTrustOptions options)
setPemTrustOptions
in class NetClientOptions
public ProtonClientOptions setPfxTrustOptions(PfxOptions options)
setPfxTrustOptions
in class NetClientOptions
public ProtonClientOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite
in class NetClientOptions
public ProtonClientOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath
in class NetClientOptions
NullPointerException
public ProtonClientOptions addCrlValue(Buffer crlValue) throws NullPointerException
addCrlValue
in class NetClientOptions
NullPointerException
public ProtonClientOptions setTrustAll(boolean trustAll)
setTrustAll
in class NetClientOptions
public ProtonClientOptions setConnectTimeout(int connectTimeout)
setConnectTimeout
in class NetClientOptions
public ProtonClientOptions setReconnectAttempts(int attempts)
setReconnectAttempts
in class NetClientOptions
public ProtonClientOptions setReconnectInterval(long interval)
setReconnectInterval
in class NetClientOptions
public ProtonClientOptions setUseAlpn(boolean useAlpn)
setUseAlpn
in class NetClientOptions
public ProtonClientOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol
in class NetClientOptions
public ProtonClientOptions setHostnameVerificationAlgorithm(String hostnameVerificationAlgorithm)
setHostnameVerificationAlgorithm
in class NetClientOptions
public ProtonClientOptions setKeyCertOptions(KeyCertOptions options)
setKeyCertOptions
in class NetClientOptions
public ProtonClientOptions setLogActivity(boolean logEnabled)
setLogActivity
in class NetClientOptions
public ProtonClientOptions setMetricsName(String metricsName)
setMetricsName
in class NetClientOptions
public ProtonClientOptions setProxyOptions(ProxyOptions proxyOptions)
setProxyOptions
in class NetClientOptions
public ProtonClientOptions setTrustOptions(TrustOptions options)
setTrustOptions
in class NetClientOptions
public ProtonClientOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions
in class NetClientOptions
public ProtonClientOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions
in class NetClientOptions
public ProtonClientOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
setSslEngineOptions
in class NetClientOptions
public ProtonClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout
in class NetClientOptions
public ProtonClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit
in class NetClientOptions
public ProtonClientOptions setLocalAddress(String localAddress)
setLocalAddress
in class NetClientOptions
public ProtonClientOptions setReusePort(boolean reusePort)
setReusePort
in class NetClientOptions
public ProtonClientOptions setTcpCork(boolean tcpCork)
setTcpCork
in class NetClientOptions
public ProtonClientOptions setTcpFastOpen(boolean tcpFastOpen)
setTcpFastOpen
in class NetClientOptions
public ProtonClientOptions setTcpQuickAck(boolean tcpQuickAck)
setTcpQuickAck
in class NetClientOptions
public ProtonClientOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol
in class NetClientOptions
public ProtonClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols
in class NetClientOptions
public 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 © 2020 Eclipse. All rights reserved.