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 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_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_USE_POOLED_BUFFERS
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() |
int |
hashCode() |
boolean |
isTrustAll() |
ClientOptionsBase |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
ClientOptionsBase |
setTrustAll(boolean trustAll)
Set whether all server certificates should be trusted
|
addCrlPath, addCrlValue, addEnabledCipherSuite, getCrlPaths, getCrlValues, getEnabledCipherSuites, getIdleTimeout, getKeyCertOptions, getSoLinger, getTrustOptions, isSsl, isTcpKeepAlive, isTcpNoDelay, isUsePooledBuffers, setIdleTimeout, setKeyStoreOptions, setPemKeyCertOptions, setPemTrustOptions, setPfxKeyCertOptions, setPfxTrustOptions, setSoLinger, setSsl, setTcpKeepAlive, setTcpNoDelay, setTrustStoreOptions, setUsePooledBuffers
getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClass
public static final int DEFAULT_CONNECT_TIMEOUT
public static final boolean DEFAULT_TRUST_ALL
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 boolean equals(Object o)
equals
in class TCPSSLOptions
public int hashCode()
hashCode
in class TCPSSLOptions
Copyright © 2015. All rights reserved.