Top Description Fields Constructors Methods
io.vertx.core.net

public abstract Class ClientOptionsBase

extends TCPSSLOptions
Class Inheritance
Known Direct Subclasses
io.vertx.core.net.NetClientOptions, io.vertx.core.http.HttpClientOptions, io.vertx.core.http.WebSocketClientOptions
Annotations
@DataObject
@JsonGen
publicConverter:false
Imports
io.vertx.codegen.annotations.DataObject, io.vertx.codegen.json.annotations.JsonGen, io.vertx.core.buffer.Buffer, io.vertx.core.json.JsonObject, io.netty.handler.logging.ByteBufFormat, java.util.ArrayList, .List, java.util.concurrent.TimeUnit

Base class for Client options
Author
Tim Fox

Field Summary

Modifier and TypeField and Description
private int
public static final int
DEFAULT_CONNECT_TIMEOUT

The default value of connect timeout = 60000 ms

public static final String
DEFAULT_METRICS_NAME

The default value of the client metrics = "":

public static final boolean
DEFAULT_TRUST_ALL

The default value of whether all servers (SSL/TLS) should be trusted = false

private String
private String
private List<String>
private ProxyOptions
private boolean
Inherited from io.vertx.core.net.TCPSSLOptions:
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLSDEFAULT_IDLE_TIMEOUTDEFAULT_IDLE_TIMEOUT_TIME_UNITDEFAULT_READ_IDLE_TIMEOUTDEFAULT_SO_LINGERDEFAULT_SSLDEFAULT_SSL_ENGINEDEFAULT_SSL_HANDSHAKE_TIMEOUTDEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNITDEFAULT_TCP_CORKDEFAULT_TCP_FAST_OPENDEFAULT_TCP_KEEAPLIVE_INTERVAL_SECONDSDEFAULT_TCP_KEEP_ALIVEDEFAULT_TCP_KEEPALIVE_COUNTDEFAULT_TCP_KEEPALIVE_IDLE_SECONDSDEFAULT_TCP_NO_DELAYDEFAULT_TCP_QUICKACKDEFAULT_TCP_USER_TIMEOUTDEFAULT_USE_ALPNDEFAULT_WRITE_IDLE_TIMEOUT

Constructor Summary

AccessConstructor and Description
public
ClientOptionsBase()

Default constructor

public
ClientOptionsBase(ClientOptionsBase
the options to copy
other
)

Copy constructor

public
ClientOptionsBase(JsonObject
the JSON
json
)
References Deprecated JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

Create options from some JSON

Method Summary

Modifier and TypeMethod and Description
public ClientOptionsBase
addCrlPath(String
the path
crlPath
)

Overrides io.vertx.core.net.TCPSSLOptions.addCrlPath.

Add a CRL path

public ClientOptionsBase
addCrlValue(Buffer
the value
crlValue
)

Overrides io.vertx.core.net.TCPSSLOptions.addCrlValue.

References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Add a CRL value

public ClientOptionsBase
addEnabledCipherSuite(String
the suite
suite
)

Overrides io.vertx.core.net.TCPSSLOptions.addEnabledCipherSuite.

Add an enabled cipher suite, appended to the ordered suites.

public ClientOptionsBase
addEnabledSecureTransportProtocol(String
the SSL/TLS protocol to enable
protocol
)

Overrides io.vertx.core.net.TCPSSLOptions.addEnabledSecureTransportProtocol.

Add an enabled SSL/TLS protocols, appended to the ordered protocols.

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
addNonProxyHost
(String
the added host
host
)

Add a host to the getNonProxyHosts() list.

public int

Returns:

the value of connect timeout
getConnectTimeout
()

public String

Returns:

the local interface to bind for network connections.
getLocalAddress
()

public String

Returns:

the metrics name identifying the reported metrics.
getMetricsName
()

public List<String>

Returns:

the list of non proxies hosts
getNonProxyHosts
()

public ProxyOptions

Returns:

proxy options
getProxyOptions
()

Get proxy options for connections

private void
public boolean

Returns:

true if all server certificates should be trusted
isTrustAll
()

public ClientOptionsBase
removeEnabledCipherSuite(String
the suite
suite
)

Overrides io.vertx.core.net.TCPSSLOptions.removeEnabledCipherSuite.

Removes an enabled cipher suite from the ordered suites.

public ClientOptionsBase
removeEnabledSecureTransportProtocol(String
the SSL/TLS protocol to disable
protocol
)

Overrides io.vertx.core.net.TCPSSLOptions.removeEnabledSecureTransportProtocol.

Removes an enabled SSL/TLS protocol from the ordered protocols.

public ClientOptionsBase
setActivityLogDataFormat(ByteBufFormat
the format to use
activityLogDataFormat
)

Overrides io.vertx.core.net.TCPSSLOptions.setActivityLogDataFormat.

Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setConnectTimeout
(int
connect timeout, in ms
connectTimeout
)

Set the connect timeout

public ClientOptionsBase
setIdleTimeout(int
the timeout
idleTimeout
)

Overrides io.vertx.core.net.TCPSSLOptions.setIdleTimeout.

Set the idle timeout, default time unit is seconds.

public ClientOptionsBase
setIdleTimeoutUnit(TimeUnit
specify time unit.
idleTimeoutUnit
)

Overrides io.vertx.core.net.TCPSSLOptions.setIdleTimeoutUnit.

Set the idle timeout unit.

public ClientOptionsBase
public ClientOptionsBase
setKeyCertOptions(KeyCertOptions
the key store options
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setKeyCertOptions.

Set the key/cert options.

public ClientOptionsBase
setKeyStoreOptions(JksOptions
the key store in jks format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setKeyStoreOptions.

Deprecated

Set the key/cert options in jks format, aka Java keystore.

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setLocalAddress
(String
the local address
localAddress
)

Set the local interface to bind for network connections.

public ClientOptionsBase
setLogActivity(boolean
true for logging the network activity
logEnabled
)

Overrides io.vertx.core.net.TCPSSLOptions.setLogActivity.

Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setMetricsName
(String
the metrics name
metricsName
)

Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setNonProxyHosts
(List<String>
the list of non proxies hosts
nonProxyHosts
)

Set a list of remote hosts that are not proxied when the client is configured to use a proxy.

public ClientOptionsBase
public ClientOptionsBase
setPemKeyCertOptions(PemKeyCertOptions
the options in pem format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setPemKeyCertOptions.

Deprecated

Set the key/cert store options in pem format.

public ClientOptionsBase
setPemTrustOptions(PemTrustOptions
the trust options in pem format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setPemTrustOptions.

Deprecated

Set the trust options in pem format

public ClientOptionsBase
setPfxKeyCertOptions(PfxOptions
the key cert options in pfx format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setPfxKeyCertOptions.

Deprecated

Set the key/cert options in pfx format.

public ClientOptionsBase
setPfxTrustOptions(PfxOptions
the trust options in pfx format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setPfxTrustOptions.

Deprecated

Set the trust options in pfx format

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setProxyOptions
(ProxyOptions
proxy options object
proxyOptions
)

Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.

public ClientOptionsBase
setReadIdleTimeout(int
the read timeout
idleTimeout
)

Overrides io.vertx.core.net.TCPSSLOptions.setReadIdleTimeout.

Set the read idle timeout, default time unit is seconds.

public ClientOptionsBase
setReceiveBufferSize(int
the buffers size, in bytes
receiveBufferSize
)

Overrides io.vertx.core.net.TCPSSLOptions.setReceiveBufferSize.

Set the TCP receive buffer size

public ClientOptionsBase
setReuseAddress(boolean
the value of reuse address
reuseAddress
)

Overrides io.vertx.core.net.TCPSSLOptions.setReuseAddress.

Set the value of reuse address

public ClientOptionsBase
setReusePort(boolean
the value of reuse port
reusePort
)

Overrides io.vertx.core.net.TCPSSLOptions.setReusePort.

Set the value of reuse port.

public ClientOptionsBase
setSendBufferSize(int
the buffers size, in bytes
sendBufferSize
)

Overrides io.vertx.core.net.TCPSSLOptions.setSendBufferSize.

Set the TCP send buffer size

public ClientOptionsBase
setSoLinger(int
true if SO_linger is enabled
soLinger
)

Overrides io.vertx.core.net.TCPSSLOptions.setSoLinger.

Set whether SO_linger keep alive is enabled

public ClientOptionsBase
setSsl(boolean
true if enabled
ssl
)

Overrides io.vertx.core.net.TCPSSLOptions.setSsl.

Set whether SSL/TLS is enabled

public ClientOptionsBase
setSslEngineOptions(SSLEngineOptions
the ssl engine to use
sslEngineOptions
)

Overrides io.vertx.core.net.TCPSSLOptions.setSslEngineOptions.

Set to use SSL engine implementation to use.

public ClientOptionsBase
setTcpCork(boolean
the cork value
tcpCork
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpCork.

Enable the TCP_CORK option - only with linux native transport.

public ClientOptionsBase
setTcpFastOpen(boolean
the fast open value
tcpFastOpen
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpFastOpen.

Enable the TCP_FASTOPEN option - only with linux native transport.

public ClientOptionsBase
setTcpKeepAlive(boolean
true if TCP keep alive is enabled
tcpKeepAlive
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpKeepAlive.

Set whether TCP keep alive is enabled

public ClientOptionsBase
setTcpNoDelay(boolean
true if TCP no delay is enabled (Nagle disabled)
tcpNoDelay
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpNoDelay.

Set whether TCP no delay is enabled

public ClientOptionsBase
setTcpQuickAck(boolean
the quick ack value
tcpQuickAck
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpQuickAck.

Enable the TCP_QUICKACK option - only with linux native transport.

public ClientOptionsBase
setTcpUserTimeout(int
the tcp user timeout value
tcpUserTimeout
)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpUserTimeout.

Sets the TCP_USER_TIMEOUT option - only with linux native transport.

public ClientOptionsBase
setTrafficClass(int
the value of traffic class
trafficClass
)

Overrides io.vertx.core.net.TCPSSLOptions.setTrafficClass.

Set the value of traffic class

public ClientOptionsBase

Returns:

a reference to this, so the API can be used fluently
setTrustAll
(boolean
true if all should be trusted
trustAll
)

Set whether all server certificates should be trusted

public ClientOptionsBase
setTrustOptions(TrustOptions
the trust options
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setTrustOptions.

Set the trust options.

public ClientOptionsBase
setTrustStoreOptions(JksOptions
the trust options in jks format
options
)

Overrides io.vertx.core.net.TCPSSLOptions.setTrustStoreOptions.

Deprecated

Set the trust options in jks format, aka Java truststore

public ClientOptionsBase
setUseAlpn(boolean
true when Application-Layer Protocol Negotiation should be used
useAlpn
)

Overrides io.vertx.core.net.TCPSSLOptions.setUseAlpn.

Set the ALPN usage.

public ClientOptionsBase
setWriteIdleTimeout(int
the write timeout
idleTimeout
)

Overrides io.vertx.core.net.TCPSSLOptions.setWriteIdleTimeout.

Set the write idle timeout, default time unit is seconds.

public JsonObject

Returns:

the JSON
toJson
()

Overrides io.vertx.core.net.TCPSSLOptions.toJson.

References Deprecated JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

Convert to JSON

Inherited from io.vertx.core.net.TCPSSLOptions:
getCrlPathsgetCrlValuesgetEnabledCipherSuitesgetEnabledSecureTransportProtocolsgetIdleTimeoutgetIdleTimeoutUnitgetJdkSslEngineOptionsgetKeyCertOptionsgetKeyStoreOptionsgetOpenSslEngineOptionsgetPemKeyCertOptionsgetPemTrustOptionsgetPfxKeyCertOptionsgetPfxTrustOptionsgetReadIdleTimeoutgetSoLingergetSslEngineOptionsgetSslHandshakeTimeoutgetSslHandshakeTimeoutUnitgetSslOptionsgetTcpKeepAliveCountgetTcpKeepAliveIdleSecondsgetTcpKeepAliveIntervalSecondsgetTcpUserTimeoutgetTrustOptionsgetTrustStoreOptionsgetWriteIdleTimeoutisSslisTcpCorkisTcpFastOpenisTcpKeepAliveisTcpNoDelayisTcpQuickAckisUseAlpnsetEnabledSecureTransportProtocolssetSslHandshakeTimeoutsetSslHandshakeTimeoutUnitsetTcpKeepAliveCountsetTcpKeepAliveIdleSecondssetTcpKeepAliveIntervalSeconds

Field Detail

connectTimeoutback to summary
private int connectTimeout
DEFAULT_CONNECT_TIMEOUTback to summary
public static final int DEFAULT_CONNECT_TIMEOUT

The default value of connect timeout = 60000 ms

DEFAULT_METRICS_NAMEback to summary
public static final String DEFAULT_METRICS_NAME

The default value of the client metrics = "":

DEFAULT_TRUST_ALLback to summary
public static final boolean DEFAULT_TRUST_ALL

The default value of whether all servers (SSL/TLS) should be trusted = false

localAddressback to summary
private String localAddress
metricsNameback to summary
private String metricsName
nonProxyHostsback to summary
private List<String> nonProxyHosts
proxyOptionsback to summary
private ProxyOptions proxyOptions
trustAllback to summary
private boolean trustAll

Constructor Detail

ClientOptionsBaseback to summary
public ClientOptionsBase()

Default constructor

ClientOptionsBaseback to summary
public ClientOptionsBase(ClientOptionsBase other)

Copy constructor

Parameters
other:ClientOptionsBase

the options to copy

ClientOptionsBaseback to summary
public ClientOptionsBase(JsonObject json)

References Deprecated

JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Create options from some JSON

Parameters
json:JsonObject

the JSON

Method Detail

addCrlPathback to summary
public ClientOptionsBase addCrlPath(String crlPath) throws NullPointerException

Overrides io.vertx.core.net.TCPSSLOptions.addCrlPath.

Doc from io.vertx.core.net.TCPSSLOptions.addCrlPath.

Add a CRL path

Parameters
crlPath:String

the path

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
addCrlValueback to summary
public ClientOptionsBase addCrlValue(Buffer crlValue) throws NullPointerException

Overrides io.vertx.core.net.TCPSSLOptions.addCrlValue.

Doc from io.vertx.core.net.TCPSSLOptions.addCrlValue.

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Add a CRL value

Parameters
crlValue:Buffer

the value

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
addEnabledCipherSuiteback to summary
public ClientOptionsBase addEnabledCipherSuite(String suite)

Overrides io.vertx.core.net.TCPSSLOptions.addEnabledCipherSuite.

Doc from io.vertx.core.net.TCPSSLOptions.addEnabledCipherSuite.

Add an enabled cipher suite, appended to the ordered suites.

Parameters
suite:String

the suite

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
addEnabledSecureTransportProtocolback to summary
public ClientOptionsBase addEnabledSecureTransportProtocol(String protocol)

Overrides io.vertx.core.net.TCPSSLOptions.addEnabledSecureTransportProtocol.

Doc from io.vertx.core.net.TCPSSLOptions.addEnabledSecureTransportProtocol.

Add an enabled SSL/TLS protocols, appended to the ordered protocols.

Parameters
protocol:String

the SSL/TLS protocol to enable

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
addNonProxyHostback to summary
public ClientOptionsBase addNonProxyHost(String host)

Add a host to the getNonProxyHosts() list.

Parameters
host:String

the added host

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

getConnectTimeoutback to summary
public int getConnectTimeout()
Returns:int

the value of connect timeout

getLocalAddressback to summary
public String getLocalAddress()
Returns:String

the local interface to bind for network connections.

getMetricsNameback to summary
public String getMetricsName()
Returns:String

the metrics name identifying the reported metrics.

getNonProxyHostsback to summary
public List<String> getNonProxyHosts()
Returns:List<String>

the list of non proxies hosts

getProxyOptionsback to summary
public ProxyOptions getProxyOptions()

Get proxy options for connections

Returns:ProxyOptions

proxy options

initback to summary
private void init()

Hides io.vertx.core.net.TCPSSLOptions.init.

isTrustAllback to summary
public boolean isTrustAll()
Returns:boolean

true if all server certificates should be trusted

removeEnabledCipherSuiteback to summary
public ClientOptionsBase removeEnabledCipherSuite(String suite)

Overrides io.vertx.core.net.TCPSSLOptions.removeEnabledCipherSuite.

Doc from io.vertx.core.net.TCPSSLOptions.removeEnabledCipherSuite.

Removes an enabled cipher suite from the ordered suites.

Parameters
suite:String

the suite

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
removeEnabledSecureTransportProtocolback to summary
public ClientOptionsBase removeEnabledSecureTransportProtocol(String protocol)

Overrides io.vertx.core.net.TCPSSLOptions.removeEnabledSecureTransportProtocol.

Doc from io.vertx.core.net.TCPSSLOptions.removeEnabledSecureTransportProtocol.

Removes an enabled SSL/TLS protocol from the ordered protocols.

Parameters
protocol:String

the SSL/TLS protocol to disable

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setActivityLogDataFormatback to summary
public ClientOptionsBase setActivityLogDataFormat(ByteBufFormat activityLogDataFormat)

Overrides io.vertx.core.net.TCPSSLOptions.setActivityLogDataFormat.

Doc from io.vertx.core.net.NetworkOptions.setActivityLogDataFormat.

Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.

Parameters
activityLogDataFormat:ByteBufFormat

the format to use

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setConnectTimeoutback to summary
public ClientOptionsBase setConnectTimeout(int connectTimeout)

Set the connect timeout

Parameters
connectTimeout:int

connect timeout, in ms

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setIdleTimeoutback to summary
public ClientOptionsBase setIdleTimeout(int idleTimeout)

Overrides io.vertx.core.net.TCPSSLOptions.setIdleTimeout.

Doc from io.vertx.core.net.TCPSSLOptions.setIdleTimeout.

Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, use setIdleTimeoutUnit(TimeUnit)

Parameters
idleTimeout:int

the timeout

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setIdleTimeoutUnitback to summary
public ClientOptionsBase setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)

Overrides io.vertx.core.net.TCPSSLOptions.setIdleTimeoutUnit.

Doc from io.vertx.core.net.TCPSSLOptions.setIdleTimeoutUnit.

Set the idle timeout unit. If not specified, default is seconds.

Parameters
idleTimeoutUnit:TimeUnit

specify time unit.

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setJdkSslEngineOptionsback to summary
public ClientOptionsBase setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)

Overrides io.vertx.core.net.TCPSSLOptions.setJdkSslEngineOptions.

Deprecated

Annotations
@Deprecated
@Override
setKeyCertOptionsback to summary
public ClientOptionsBase setKeyCertOptions(KeyCertOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setKeyCertOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setKeyCertOptions.

Set the key/cert options.

Parameters
options:KeyCertOptions

the key store options

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setKeyStoreOptionsback to summary
public ClientOptionsBase setKeyStoreOptions(JksOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setKeyStoreOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setKeyStoreOptions.

Deprecated

Set the key/cert options in jks format, aka Java keystore.

Parameters
options:JksOptions

the key store in jks format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setLocalAddressback to summary
public ClientOptionsBase setLocalAddress(String localAddress)

Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.

Parameters
localAddress:String

the local address

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setLogActivityback to summary
public ClientOptionsBase setLogActivity(boolean logEnabled)

Overrides io.vertx.core.net.TCPSSLOptions.setLogActivity.

Doc from io.vertx.core.net.NetworkOptions.setLogActivity.

Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

Parameters
logEnabled:boolean

true for logging the network activity

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setMetricsNameback to summary
public ClientOptionsBase setMetricsName(String metricsName)

Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.

Parameters
metricsName:String

the metrics name

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setNonProxyHostsback to summary
public ClientOptionsBase setNonProxyHosts(List<String> nonProxyHosts)

Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.

Parameters
nonProxyHosts:List<String>

the list of non proxies hosts

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setOpenSslEngineOptionsback to summary
public ClientOptionsBase setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)

Overrides io.vertx.core.net.TCPSSLOptions.setOpenSslEngineOptions.

Deprecated

Annotations
@Deprecated
@Override
setPemKeyCertOptionsback to summary
public ClientOptionsBase setPemKeyCertOptions(PemKeyCertOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setPemKeyCertOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setPemKeyCertOptions.

Deprecated

Set the key/cert store options in pem format.

Parameters
options:PemKeyCertOptions

the options in pem format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setPemTrustOptionsback to summary
public ClientOptionsBase setPemTrustOptions(PemTrustOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setPemTrustOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setPemTrustOptions.

Deprecated

Set the trust options in pem format

Parameters
options:PemTrustOptions

the trust options in pem format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setPfxKeyCertOptionsback to summary
public ClientOptionsBase setPfxKeyCertOptions(PfxOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setPfxKeyCertOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setPfxKeyCertOptions.

Deprecated

Set the key/cert options in pfx format.

Parameters
options:PfxOptions

the key cert options in pfx format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setPfxTrustOptionsback to summary
public ClientOptionsBase setPfxTrustOptions(PfxOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setPfxTrustOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setPfxTrustOptions.

Deprecated

Set the trust options in pfx format

Parameters
options:PfxOptions

the trust options in pfx format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setProxyOptionsback to summary
public ClientOptionsBase setProxyOptions(ProxyOptions proxyOptions)

Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.

Parameters
proxyOptions:ProxyOptions

proxy options object

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setReadIdleTimeoutback to summary
public ClientOptionsBase setReadIdleTimeout(int idleTimeout)

Overrides io.vertx.core.net.TCPSSLOptions.setReadIdleTimeout.

Doc from io.vertx.core.net.TCPSSLOptions.setReadIdleTimeout.

Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, use setIdleTimeoutUnit(TimeUnit)

Parameters
idleTimeout:int

the read timeout

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setReceiveBufferSizeback to summary
public ClientOptionsBase setReceiveBufferSize(int receiveBufferSize)

Overrides io.vertx.core.net.TCPSSLOptions.setReceiveBufferSize.

Doc from io.vertx.core.net.NetworkOptions.setReceiveBufferSize.

Set the TCP receive buffer size

Parameters
receiveBufferSize:int

the buffers size, in bytes

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setReuseAddressback to summary
public ClientOptionsBase setReuseAddress(boolean reuseAddress)

Overrides io.vertx.core.net.TCPSSLOptions.setReuseAddress.

Doc from io.vertx.core.net.NetworkOptions.setReuseAddress.

Set the value of reuse address

Parameters
reuseAddress:boolean

the value of reuse address

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setReusePortback to summary
public ClientOptionsBase setReusePort(boolean reusePort)

Overrides io.vertx.core.net.TCPSSLOptions.setReusePort.

Doc from io.vertx.core.net.NetworkOptions.setReusePort.

Set the value of reuse port.

This is only supported by native transports.

Parameters
reusePort:boolean

the value of reuse port

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setSendBufferSizeback to summary
public ClientOptionsBase setSendBufferSize(int sendBufferSize)

Overrides io.vertx.core.net.TCPSSLOptions.setSendBufferSize.

Doc from io.vertx.core.net.NetworkOptions.setSendBufferSize.

Set the TCP send buffer size

Parameters
sendBufferSize:int

the buffers size, in bytes

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setSoLingerback to summary
public ClientOptionsBase setSoLinger(int soLinger)

Overrides io.vertx.core.net.TCPSSLOptions.setSoLinger.

Doc from io.vertx.core.net.TCPSSLOptions.setSoLinger.

Set whether SO_linger keep alive is enabled

Parameters
soLinger:int

true if SO_linger is enabled

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setSslback to summary
public ClientOptionsBase setSsl(boolean ssl)

Overrides io.vertx.core.net.TCPSSLOptions.setSsl.

Doc from io.vertx.core.net.TCPSSLOptions.setSsl.

Set whether SSL/TLS is enabled

Parameters
ssl:boolean

true if enabled

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setSslEngineOptionsback to summary
public ClientOptionsBase setSslEngineOptions(SSLEngineOptions sslEngineOptions)

Overrides io.vertx.core.net.TCPSSLOptions.setSslEngineOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setSslEngineOptions.

Set to use SSL engine implementation to use.

Parameters
sslEngineOptions:SSLEngineOptions

the ssl engine to use

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setTcpCorkback to summary
public ClientOptionsBase setTcpCork(boolean tcpCork)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpCork.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpCork.

Enable the TCP_CORK option - only with linux native transport.

Parameters
tcpCork:boolean

the cork value

Annotations
@Override
setTcpFastOpenback to summary
public ClientOptionsBase setTcpFastOpen(boolean tcpFastOpen)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpFastOpen.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpFastOpen.

Enable the TCP_FASTOPEN option - only with linux native transport.

Parameters
tcpFastOpen:boolean

the fast open value

Annotations
@Override
setTcpKeepAliveback to summary
public ClientOptionsBase setTcpKeepAlive(boolean tcpKeepAlive)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpKeepAlive.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpKeepAlive.

Set whether TCP keep alive is enabled

Parameters
tcpKeepAlive:boolean

true if TCP keep alive is enabled

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setTcpNoDelayback to summary
public ClientOptionsBase setTcpNoDelay(boolean tcpNoDelay)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpNoDelay.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpNoDelay.

Set whether TCP no delay is enabled

Parameters
tcpNoDelay:boolean

true if TCP no delay is enabled (Nagle disabled)

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setTcpQuickAckback to summary
public ClientOptionsBase setTcpQuickAck(boolean tcpQuickAck)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpQuickAck.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpQuickAck.

Enable the TCP_QUICKACK option - only with linux native transport.

Parameters
tcpQuickAck:boolean

the quick ack value

Annotations
@Override
setTcpUserTimeoutback to summary
public ClientOptionsBase setTcpUserTimeout(int tcpUserTimeout)

Overrides io.vertx.core.net.TCPSSLOptions.setTcpUserTimeout.

Doc from io.vertx.core.net.TCPSSLOptions.setTcpUserTimeout.

Sets the TCP_USER_TIMEOUT option - only with linux native transport.

Parameters
tcpUserTimeout:int

the tcp user timeout value

Annotations
@Override
setTrafficClassback to summary
public ClientOptionsBase setTrafficClass(int trafficClass)

Overrides io.vertx.core.net.TCPSSLOptions.setTrafficClass.

Doc from io.vertx.core.net.NetworkOptions.setTrafficClass.

Set the value of traffic class

Parameters
trafficClass:int

the value of traffic class

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setTrustAllback to summary
public ClientOptionsBase setTrustAll(boolean trustAll)

Set whether all server certificates should be trusted

Parameters
trustAll:boolean

true if all should be trusted

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

setTrustOptionsback to summary
public ClientOptionsBase setTrustOptions(TrustOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setTrustOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setTrustOptions.

Set the trust options.

Parameters
options:TrustOptions

the trust options

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
setTrustStoreOptionsback to summary
public ClientOptionsBase setTrustStoreOptions(JksOptions options)

Overrides io.vertx.core.net.TCPSSLOptions.setTrustStoreOptions.

Doc from io.vertx.core.net.TCPSSLOptions.setTrustStoreOptions.

Deprecated

Set the trust options in jks format, aka Java truststore

Parameters
options:JksOptions

the trust options in jks format

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Deprecated
@Override
setUseAlpnback to summary
public ClientOptionsBase setUseAlpn(boolean useAlpn)

Overrides io.vertx.core.net.TCPSSLOptions.setUseAlpn.

Doc from io.vertx.core.net.TCPSSLOptions.setUseAlpn.

Set the ALPN usage.

Parameters
useAlpn:boolean

true when Application-Layer Protocol Negotiation should be used

Annotations
@Override
setWriteIdleTimeoutback to summary
public ClientOptionsBase setWriteIdleTimeout(int idleTimeout)

Overrides io.vertx.core.net.TCPSSLOptions.setWriteIdleTimeout.

Doc from io.vertx.core.net.TCPSSLOptions.setWriteIdleTimeout.

Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, use setIdleTimeoutUnit(TimeUnit)

Parameters
idleTimeout:int

the write timeout

Returns:ClientOptionsBase

a reference to this, so the API can be used fluently

Annotations
@Override
toJsonback to summary
public JsonObject toJson()

Overrides io.vertx.core.net.TCPSSLOptions.toJson.

References Deprecated

JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Convert to JSON

Returns:JsonObject

the JSON