public abstract class ClientOptionsBase extends TCPSSLOptions
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECT_TIMEOUT
The default value of connect timeout = 60000 ms
|
static String |
DEFAULT_METRICS_NAME
The default value of the client metrics = "":
|
static boolean |
DEFAULT_TRUST_ALL
The default value of whether all servers (SSL/TLS) should be trusted = false
|
DEFAULT_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_USE_ALPN, DEFAULT_USE_POOLED_BUFFERS
DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
ClientOptionsBase()
Default constructor
|
ClientOptionsBase(ClientOptionsBase other)
Copy constructor
|
ClientOptionsBase(JsonObject json)
Create options from some JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getConnectTimeout() |
String |
getMetricsName() |
ProxyOptions |
getProxyOptions()
Get proxy options for connections
|
int |
hashCode() |
boolean |
isTrustAll() |
ClientOptionsBase |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
ClientOptionsBase |
setLogActivity(boolean logEnabled)
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
|
ClientOptionsBase |
setMetricsName(String metricsName)
Set the metrics name identifying the reported metrics, useful for grouping metrics
with the same name.
|
ClientOptionsBase |
setProxyOptions(ProxyOptions proxyOptions)
Set proxy options for connections via CONNECT proxy (e.g.
|
ClientOptionsBase |
setTrustAll(boolean trustAll)
Set whether all server certificates should be trusted
|
addCrlPath, addCrlValue, addEnabledCipherSuite, addEnabledSecureTransportProtocol, getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getKeyCertOptions, getSoLinger, getSslEngineOptions, getTrustOptions, isSsl, isTcpKeepAlive, isTcpNoDelay, isUseAlpn, isUsePooledBuffers, setIdleTimeout, setJdkSslEngineOptions, setKeyCertOptions, setKeyStoreOptions, setOpenSslEngineOptions, setPemKeyCertOptions, setPemTrustOptions, setPfxKeyCertOptions, setPfxTrustOptions, setSoLinger, setSsl, setSslEngineOptions, setTcpKeepAlive, setTcpNoDelay, setTrustOptions, setTrustStoreOptions, setUseAlpn, setUsePooledBuffers
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClass
public static final int DEFAULT_CONNECT_TIMEOUT
public static final boolean DEFAULT_TRUST_ALL
public static final String DEFAULT_METRICS_NAME
public ClientOptionsBase()
public ClientOptionsBase(ClientOptionsBase other)
other
- the options to copypublic ClientOptionsBase(JsonObject json)
json
- the JSONpublic boolean isTrustAll()
public ClientOptionsBase setTrustAll(boolean trustAll)
trustAll
- true if all should be trustedpublic int getConnectTimeout()
public ClientOptionsBase setConnectTimeout(int connectTimeout)
connectTimeout
- connect timeout, in mspublic String getMetricsName()
public ClientOptionsBase setMetricsName(String metricsName)
metricsName
- the metrics namepublic ClientOptionsBase setProxyOptions(ProxyOptions proxyOptions)
proxyOptions
- proxy options objectpublic ProxyOptions getProxyOptions()
public ClientOptionsBase setLogActivity(boolean logEnabled)
NetworkOptions
setLogActivity
in class TCPSSLOptions
logEnabled
- true for logging the network activitypublic boolean equals(Object o)
equals
in class TCPSSLOptions
public int hashCode()
hashCode
in class TCPSSLOptions
Copyright © 2016. All rights reserved.