io.vertx.core.net.NetClient .
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| public static final String | DEFAULT_HOSTNAME_VERIFICATION_ALGORITHM
Default value to determine hostname verification algorithm hostname verification (for SSL/TLS) = null |
| public static final int | DEFAULT_RECONNECT_ATTEMPTS
The default value for reconnect attempts = 0 |
| public static final long | DEFAULT_RECONNECT_INTERVAL
The default value for reconnect interval = 1000 ms |
| public static final boolean | DEFAULT_REGISTER_WRITE_HANDLER
Whether a write-handler should be registered by default = false. |
| private String | |
| private int | |
| private long | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | NetClientOptions(ClientOptionsBase
the options to copy other)Create an instance copying the values from |
| public | NetClientOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public NetClientOptions | addCrlPath(String
the path crlPath)Overrides io. Add a CRL path |
| public NetClientOptions | addCrlValue(Buffer
the value crlValue)Overrides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Add a CRL value |
| public NetClientOptions | addEnabledCipherSuite(String
the suite suite)Overrides io. Add an enabled cipher suite, appended to the ordered suites. |
| public NetClientOptions | addEnabledSecureTransportProtocol(final String
the SSL/TLS protocol to enable protocol)Overrides io. Add an enabled SSL/TLS protocols, appended to the ordered protocols. |
| public NetClientOptions | addNonProxyHost(String
the added host nonProxyHost)Overrides io. Add a |
| public List | Returns: the list of application-layer protocols send during the Application-Layer Protocol Negotiation.
|
| public String | |
| public int | |
| public long | |
| private void | |
| public boolean | Returns: true if a write-handler should be registered on the io., otherwise false
|
| public NetClientOptions | removeEnabledCipherSuite(String
the suite suite)Overrides io. Removes an enabled cipher suite from the ordered suites. |
| public NetClientOptions | removeEnabledSecureTransportProtocol(String
the SSL/TLS protocol to disable protocol)Overrides io. Removes an enabled SSL/TLS protocol from the ordered protocols. |
| public NetClientOptions | setActivityLogDataFormat(ByteBufFormat
the format to use activityLogDataFormat)Overrides io. Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. |
| public NetClientOptions | Returns: a reference to this, so the API can be used fluentlythe protocols protocols)Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation. |
| public NetClientOptions | setConnectTimeout(int
connect timeout, in ms connectTimeout)Overrides io. Set the connect timeout |
| public NetClientOptions | setEnabledSecureTransportProtocols(Set<String>
the SSL/TLS protocols to enable enabledSecureTransportProtocols)Overrides io. Sets the list of enabled SSL/TLS protocols. |
| public NetClientOptions | Returns: a reference to this, so the API can be used fluentlyshould be HTTPS, LDAPS or an empty String hostnameVerificationAlgorithm)Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String |
| public NetClientOptions | setIdleTimeout(int
the timeout idleTimeout)Overrides io. Set the idle timeout, default time unit is seconds. |
| public NetClientOptions | setIdleTimeoutUnit(TimeUnit
specify time unit. idleTimeoutUnit)Overrides io. Set the idle timeout unit. |
| public NetClientOptions | setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public NetClientOptions | setKeyCertOptions(KeyCertOptions
the key store options options)Overrides io. Set the key/cert options. |
| public NetClientOptions | setKeyStoreOptions(JksOptions
the key store in jks format options)Overrides io.
Deprecated
Set the key/cert options in jks format, aka Java keystore. |
| public NetClientOptions | setLocalAddress(String
the local address localAddress)Overrides io. Set the local interface to bind for network connections. |
| public NetClientOptions | setLogActivity(boolean
true for logging the network activity logEnabled)Overrides io. Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. |
| public NetClientOptions | setMetricsName(String
the metrics name metricsName)Overrides io. Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. |
| public NetClientOptions | setNonProxyHosts(List<String>
the list of non proxies hosts nonProxyHosts)Overrides io. Set a list of remote hosts that are not proxied when the client is configured to use a proxy. |
| public ClientOptionsBase | setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public NetClientOptions | setPemKeyCertOptions(PemKeyCertOptions
the options in pem format options)Overrides io.
Deprecated
Set the key/cert store options in pem format. |
| public NetClientOptions | setPemTrustOptions(PemTrustOptions
the trust options in pem format options)Overrides io.
Deprecated
Set the trust options in pem format |
| public NetClientOptions | setPfxKeyCertOptions(PfxOptions
the key cert options in pfx format options)Overrides io.
Deprecated
Set the key/cert options in pfx format. |
| public NetClientOptions | setPfxTrustOptions(PfxOptions
the trust options in pfx format options)Overrides io.
Deprecated
Set the trust options in pfx format |
| public NetClientOptions | setProxyOptions(ProxyOptions
proxy options object proxyOptions)Overrides io. Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. |
| public NetClientOptions | setReadIdleTimeout(int
the read timeout idleTimeout)Overrides io. Set the read idle timeout, default time unit is seconds. |
| public NetClientOptions | setReceiveBufferSize(int
the buffers size, in bytes receiveBufferSize)Overrides io. Set the TCP receive buffer size |
| public NetClientOptions | Returns: a reference to this, so the API can be used fluentlythe maximum number of reconnect attempts attempts)Set the value of reconnect attempts |
| public NetClientOptions | Returns: a reference to this, so the API can be used fluentlythe reconnect interval in ms interval)Set the reconnect interval |
| public NetClientOptions | Returns: a reference to this, so the API can be used fluentlytrue to register a write-handler registerWriteHandler)Whether a write-handler should be registered on the |
| public NetClientOptions | setReuseAddress(boolean
the value of reuse address reuseAddress)Overrides io. Set the value of reuse address |
| public NetClientOptions | setReusePort(boolean
the value of reuse port reusePort)Overrides io. Set the value of reuse port. |
| public NetClientOptions | setSendBufferSize(int
the buffers size, in bytes sendBufferSize)Overrides io. Set the TCP send buffer size |
| public NetClientOptions | setSoLinger(int
true if SO_linger is enabled soLinger)Overrides io. Set whether SO_linger keep alive is enabled |
| public NetClientOptions | setSsl(boolean
true if enabled ssl)Overrides io. Set whether SSL/TLS is enabled |
| public NetClientOptions | setSslEngineOptions(SSLEngineOptions
the ssl engine to use sslEngineOptions)Overrides io. Set to use SSL engine implementation to use. |
| public NetClientOptions | setSslHandshakeTimeout(long
the SSL handshake timeout to set, in milliseconds sslHandshakeTimeout)Overrides io. Set the SSL handshake timeout, default time unit is seconds. |
| public NetClientOptions | setSslHandshakeTimeoutUnit(TimeUnit
specify time unit. sslHandshakeTimeoutUnit)Overrides io. Set the SSL handshake timeout unit. |
| public NetClientOptions | setTcpCork(boolean
the cork value tcpCork)Overrides io. Enable the |
| public NetClientOptions | setTcpFastOpen(boolean
the fast open value tcpFastOpen)Overrides io. Enable the |
| public NetClientOptions | setTcpKeepAlive(boolean
true if TCP keep alive is enabled tcpKeepAlive)Overrides io. Set whether TCP keep alive is enabled |
| public NetClientOptions | setTcpNoDelay(boolean
true if TCP no delay is enabled (Nagle disabled) tcpNoDelay)Overrides io. Set whether TCP no delay is enabled |
| public NetClientOptions | setTcpQuickAck(boolean
the quick ack value tcpQuickAck)Overrides io. Enable the |
| public NetClientOptions | setTrafficClass(int
the value of traffic class trafficClass)Overrides io. Set the value of traffic class |
| public NetClientOptions | setTrustAll(boolean
true if all should be trusted trustAll)Overrides io. Set whether all server certificates should be trusted |
| public NetClientOptions | setTrustOptions(TrustOptions
the trust options options)Overrides io. Set the trust options. |
| public NetClientOptions | setTrustStoreOptions(JksOptions
the trust options in jks format options)Overrides io.
Deprecated
Set the trust options in jks format, aka Java truststore |
| public NetClientOptions | setUseAlpn(boolean
true when Application-Layer Protocol Negotiation should be used useAlpn)Overrides io. Set the ALPN usage. |
| public NetClientOptions | setWriteIdleTimeout(int
the write timeout idleTimeout)Overrides io. Set the write idle timeout, default time unit is seconds. |
| public JsonObject | toJson()
Overrides io.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Convert to JSON |