public class MySQLConnectOptions extends SqlConnectOptions
MySQLConnection
or MySQLPool
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARACTER_ENCODING |
static String |
DEFAULT_CHARSET |
static Map<String,String> |
DEFAULT_CONNECTION_ATTRIBUTES |
static String |
DEFAULT_HOST |
static String |
DEFAULT_PASSWORD |
static int |
DEFAULT_PORT |
static String |
DEFAULT_SCHEMA |
static SslMode |
DEFAULT_SSL_MODE |
static boolean |
DEFAULT_USE_AFFECTED_ROWS |
static String |
DEFAULT_USER |
DEFAULT_CACHE_PREPARED_STATEMENTS, DEFAULT_PREPARED_STATEMENT_CACHE_FILTER, DEFAULT_PREPARED_STATEMENT_CACHE_MAX_SIZE, DEFAULT_PREPARED_STATEMENT_CACHE_SQL_LIMIT
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 |
---|
MySQLConnectOptions() |
MySQLConnectOptions(JsonObject json) |
MySQLConnectOptions(MySQLConnectOptions other) |
MySQLConnectOptions(SqlConnectOptions other) |
Modifier and Type | Method and Description |
---|---|
MySQLConnectOptions |
addCrlPath(String crlPath)
Add a CRL path
|
MySQLConnectOptions |
addCrlValue(Buffer crlValue)
Add a CRL value
|
MySQLConnectOptions |
addEnabledCipherSuite(String suite)
Add an enabled cipher suite, appended to the ordered suites.
|
MySQLConnectOptions |
addEnabledSecureTransportProtocol(String protocol)
Add an enabled SSL/TLS protocols, appended to the ordered protocols.
|
MySQLConnectOptions |
addProperty(String key,
String value)
Add a property for this client, which will be sent to server at the connection start.
|
static MySQLConnectOptions |
fromUri(String connectionUri)
Provide a
MySQLConnectOptions configured from a connection URI. |
MySQLAuthenticationPlugin |
getAuthenticationPlugin()
Get the default authentication plugin for connecting the server.
|
String |
getCharacterEncoding()
Get the Java charset for encoding string values.
|
String |
getCharset()
Get the charset for the connection.
|
String |
getCollation()
Get the collation for the connection.
|
String |
getServerRsaPublicKeyPath()
Get the path of the server RSA public key.
|
Buffer |
getServerRsaPublicKeyValue()
Get the value of the server RSA public key.
|
SocketAddress |
getSocketAddress() |
SslMode |
getSslMode()
Get the value of the configured SSL mode.
|
protected void |
init()
Initialize with the default options.
|
boolean |
isUseAffectedRows()
Get how affected rows are calculated on update/delete/insert.
|
boolean |
isUsingDomainSocket() |
MySQLConnectOptions |
removeEnabledSecureTransportProtocol(String protocol)
Removes an enabled SSL/TLS protocol from the ordered protocols.
|
MySQLConnectOptions |
setAuthenticationPlugin(MySQLAuthenticationPlugin authenticationPlugin)
Set the default
authentication plguin for the client, the option will take effect at the connection start. |
MySQLConnectOptions |
setCachePreparedStatements(boolean cachePreparedStatements)
Set whether prepared statements cache should be enabled.
|
MySQLConnectOptions |
setCharacterEncoding(String characterEncoding)
Set the Java charset for encoding string values, this value is UTF-8 by default.
|
MySQLConnectOptions |
setCharset(String charset)
Set the charset for the connection.
|
MySQLConnectOptions |
setCollation(String collation)
Set the collation for the connection.
|
MySQLConnectOptions |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
MySQLConnectOptions |
setDatabase(String database)
Specify the default database for the connection.
|
MySQLConnectOptions |
setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
Sets the list of enabled SSL/TLS protocols.
|
MySQLConnectOptions |
setHost(String host)
Specify the host for connecting to the server.
|
MySQLConnectOptions |
setHostnameVerificationAlgorithm(String hostnameVerificationAlgorithm)
Set the hostname verification algorithm interval
To disable hostname verification, set hostnameVerificationAlgorithm to an empty String
|
MySQLConnectOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, default time unit is seconds.
|
MySQLConnectOptions |
setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
Set the idle timeout unit.
|
MySQLConnectOptions |
setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions) |
MySQLConnectOptions |
setKeyCertOptions(KeyCertOptions options)
Set the key/cert options.
|
MySQLConnectOptions |
setKeyStoreOptions(JksOptions options)
Set the key/cert options in jks format, aka Java keystore.
|
MySQLConnectOptions |
setLocalAddress(String localAddress)
Set the local interface to bind for network connections.
|
MySQLConnectOptions |
setLogActivity(boolean logEnabled)
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
|
MySQLConnectOptions |
setMetricsName(String metricsName)
Set the metrics name identifying the reported metrics, useful for grouping metrics
with the same name.
|
ClientOptionsBase |
setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions) |
MySQLConnectOptions |
setPassword(String password)
Specify the user password to be used for the authentication.
|
MySQLConnectOptions |
setPemKeyCertOptions(PemKeyCertOptions options)
Set the key/cert store options in pem format.
|
MySQLConnectOptions |
setPemTrustOptions(PemTrustOptions options)
Set the trust options in pem format
|
MySQLConnectOptions |
setPfxKeyCertOptions(PfxOptions options)
Set the key/cert options in pfx format.
|
MySQLConnectOptions |
setPfxTrustOptions(PfxOptions options)
Set the trust options in pfx format
|
MySQLConnectOptions |
setPort(int port)
Specify the port for connecting to the server.
|
MySQLConnectOptions |
setPreparedStatementCacheMaxSize(int preparedStatementCacheMaxSize)
Set the maximum number of prepared statements that the connection will cache.
|
MySQLConnectOptions |
setPreparedStatementCacheSqlFilter(java.util.function.Predicate<String> predicate)
Set a predicate filtering prepared statements that the connection will cache.
|
MySQLConnectOptions |
setPreparedStatementCacheSqlLimit(int preparedStatementCacheSqlLimit)
Set the maximum length of prepared statement SQL string that the connection will cache.
|
MySQLConnectOptions |
setProperties(Map<String,String> properties)
Set properties for this client, which will be sent to server at the connection start.
|
MySQLConnectOptions |
setProxyOptions(ProxyOptions proxyOptions)
Set proxy options for connections via CONNECT proxy (e.g.
|
MySQLConnectOptions |
setReceiveBufferSize(int receiveBufferSize)
Set the TCP receive buffer size
|
MySQLConnectOptions |
setReconnectAttempts(int attempts)
Set the value of reconnect attempts
|
MySQLConnectOptions |
setReconnectInterval(long interval)
Set the reconnect interval
|
MySQLConnectOptions |
setReuseAddress(boolean reuseAddress)
Set the value of reuse address
|
MySQLConnectOptions |
setReusePort(boolean reusePort)
Set the value of reuse port.
|
MySQLConnectOptions |
setSendBufferSize(int sendBufferSize)
Set the TCP send buffer size
|
MySQLConnectOptions |
setServerRsaPublicKeyPath(String serverRsaPublicKeyPath)
Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.
|
MySQLConnectOptions |
setServerRsaPublicKeyValue(Buffer serverRsaPublicKeyValue)
Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.
|
MySQLConnectOptions |
setSoLinger(int soLinger)
Set whether SO_linger keep alive is enabled
|
MySQLConnectOptions |
setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
MySQLConnectOptions |
setSslEngineOptions(SSLEngineOptions sslEngineOptions)
Set to use SSL engine implementation to use.
|
MySQLConnectOptions |
setSslHandshakeTimeout(long sslHandshakeTimeout)
Set the SSL handshake timeout, default time unit is seconds.
|
MySQLConnectOptions |
setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
Set the SSL handshake timeout unit.
|
MySQLConnectOptions |
setSslMode(SslMode sslMode)
Set the
SslMode for the client, this option can be used to specify the desired security state of the connection to the server. |
MySQLConnectOptions |
setTcpCork(boolean tcpCork)
Enable the
TCP_CORK option - only with linux native transport. |
MySQLConnectOptions |
setTcpFastOpen(boolean tcpFastOpen)
Enable the
TCP_FASTOPEN option - only with linux native transport. |
MySQLConnectOptions |
setTcpKeepAlive(boolean tcpKeepAlive)
Set whether TCP keep alive is enabled
|
MySQLConnectOptions |
setTcpNoDelay(boolean tcpNoDelay)
Set whether TCP no delay is enabled
|
MySQLConnectOptions |
setTcpQuickAck(boolean tcpQuickAck)
Enable the
TCP_QUICKACK option - only with linux native transport. |
MySQLConnectOptions |
setTracingPolicy(TracingPolicy tracingPolicy)
Set the tracing policy for the client behavior when Vert.x has tracing enabled.
|
MySQLConnectOptions |
setTrafficClass(int trafficClass)
Set the value of traffic class
|
MySQLConnectOptions |
setTrustAll(boolean trustAll)
Set whether all server certificates should be trusted
|
MySQLConnectOptions |
setTrustOptions(TrustOptions options)
Set the trust options.
|
MySQLConnectOptions |
setTrustStoreOptions(JksOptions options)
Set the trust options in jks format, aka Java truststore
|
MySQLConnectOptions |
setUseAffectedRows(boolean useAffectedRows)
Sets how affected rows are calculated on update/delete/insert, if set to
true an update that effectively
does not change any data returns zero affected rows. |
MySQLConnectOptions |
setUseAlpn(boolean useAlpn)
Set the ALPN usage.
|
MySQLConnectOptions |
setUser(String user)
Specify the user account to be used for the authentication.
|
JsonObject |
toJson()
Convert to JSON
|
static MySQLConnectOptions |
wrap(SqlConnectOptions options) |
getCachePreparedStatements, getDatabase, getHost, getPassword, getPort, getPreparedStatementCacheMaxSize, getPreparedStatementCacheSqlFilter, getProperties, getTracingPolicy, getUser
addNonProxyHost, getApplicationLayerProtocols, getHostnameVerificationAlgorithm, getReconnectAttempts, getReconnectInterval, setApplicationLayerProtocols, setNonProxyHosts
getConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, 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 static final String DEFAULT_HOST
public static final int DEFAULT_PORT
public static final String DEFAULT_USER
public static final String DEFAULT_PASSWORD
public static final String DEFAULT_SCHEMA
public static final String DEFAULT_CHARSET
public static final boolean DEFAULT_USE_AFFECTED_ROWS
public static final SslMode DEFAULT_SSL_MODE
public static final String DEFAULT_CHARACTER_ENCODING
public MySQLConnectOptions()
public MySQLConnectOptions(JsonObject json)
public MySQLConnectOptions(SqlConnectOptions other)
public MySQLConnectOptions(MySQLConnectOptions other)
public static MySQLConnectOptions wrap(SqlConnectOptions options)
options
as MySQL specific connect optionspublic static MySQLConnectOptions fromUri(String connectionUri) throws IllegalArgumentException
MySQLConnectOptions
configured from a connection URI.connectionUri
- the connection URI to configure fromMySQLConnectOptions
parsed from the connection URIIllegalArgumentException
- when the connectionUri
is in an invalid formatpublic String getCollation()
public MySQLConnectOptions setCollation(String collation)
collation
- the collation to setpublic String getCharset()
public MySQLConnectOptions setCharset(String charset)
charset
- the charset to setpublic String getCharacterEncoding()
public MySQLConnectOptions setCharacterEncoding(String characterEncoding)
characterEncoding
- the Java charset to configurepublic boolean isUseAffectedRows()
public MySQLConnectOptions setUseAffectedRows(boolean useAffectedRows)
true
an update that effectively
does not change any data returns zero affected rows.
See mysql-affected-rows for details.useAffectedRows
- whether only affected rows are countpublic SslMode getSslMode()
public MySQLConnectOptions setSslMode(SslMode sslMode)
SslMode
for the client, this option can be used to specify the desired security state of the connection to the server.sslMode
- the ssl-mode to specifypublic MySQLAuthenticationPlugin getAuthenticationPlugin()
public MySQLConnectOptions setAuthenticationPlugin(MySQLAuthenticationPlugin authenticationPlugin)
authentication plguin
for the client, the option will take effect at the connection start.authenticationPlugin
- the auth plugin to usepublic MySQLConnectOptions setSsl(boolean ssl)
TCPSSLOptions
setSsl
in class NetClientOptions
ssl
- true if enabledpublic MySQLConnectOptions setServerRsaPublicKeyPath(String serverRsaPublicKeyPath)
serverRsaPublicKeyPath
- the path of the server RSA public keypublic String getServerRsaPublicKeyPath()
public MySQLConnectOptions setServerRsaPublicKeyValue(Buffer serverRsaPublicKeyValue)
serverRsaPublicKeyValue
- the value of the server RSA public keypublic Buffer getServerRsaPublicKeyValue()
public MySQLConnectOptions setHost(String host)
SqlConnectOptions
setHost
in class SqlConnectOptions
host
- the host to specifypublic MySQLConnectOptions setPort(int port)
SqlConnectOptions
setPort
in class SqlConnectOptions
port
- the port to specifypublic MySQLConnectOptions setUser(String user)
SqlConnectOptions
setUser
in class SqlConnectOptions
user
- the user to specifypublic MySQLConnectOptions setPassword(String password)
SqlConnectOptions
setPassword
in class SqlConnectOptions
password
- the password to specifypublic MySQLConnectOptions setDatabase(String database)
SqlConnectOptions
setDatabase
in class SqlConnectOptions
database
- the database name to specifypublic MySQLConnectOptions setCachePreparedStatements(boolean cachePreparedStatements)
SqlConnectOptions
setCachePreparedStatements
in class SqlConnectOptions
cachePreparedStatements
- true if cache should be enabledpublic MySQLConnectOptions setPreparedStatementCacheMaxSize(int preparedStatementCacheMaxSize)
SqlConnectOptions
setPreparedStatementCacheMaxSize
in class SqlConnectOptions
preparedStatementCacheMaxSize
- the size to setpublic MySQLConnectOptions setPreparedStatementCacheSqlFilter(java.util.function.Predicate<String> predicate)
SqlConnectOptions
The default predicate accepts predicate having query length < SqlConnectOptions.DEFAULT_PREPARED_STATEMENT_CACHE_SQL_LIMIT
setPreparedStatementCacheSqlFilter
in class SqlConnectOptions
predicate
- the filterpublic MySQLConnectOptions setPreparedStatementCacheSqlLimit(int preparedStatementCacheSqlLimit)
SqlConnectOptions
This is an helper setting the SqlConnectOptions.setPreparedStatementCacheSqlFilter(Predicate)
.
setPreparedStatementCacheSqlLimit
in class SqlConnectOptions
preparedStatementCacheSqlLimit
- the maximum length limit of SQL string to setpublic MySQLConnectOptions setProperties(Map<String,String> properties)
SqlConnectOptions
setProperties
in class SqlConnectOptions
properties
- the value of properties to specifypublic MySQLConnectOptions addProperty(String key, String value)
SqlConnectOptions
addProperty
in class SqlConnectOptions
key
- the value of property keyvalue
- the value of property valuepublic MySQLConnectOptions setSendBufferSize(int sendBufferSize)
NetworkOptions
setSendBufferSize
in class NetClientOptions
sendBufferSize
- the buffers size, in bytespublic MySQLConnectOptions setReceiveBufferSize(int receiveBufferSize)
NetworkOptions
setReceiveBufferSize
in class NetClientOptions
receiveBufferSize
- the buffers size, in bytespublic MySQLConnectOptions setReuseAddress(boolean reuseAddress)
NetworkOptions
setReuseAddress
in class NetClientOptions
reuseAddress
- the value of reuse addresspublic MySQLConnectOptions setReusePort(boolean reusePort)
NetworkOptions
setReusePort
in class NetClientOptions
reusePort
- the value of reuse portpublic MySQLConnectOptions setTrafficClass(int trafficClass)
NetworkOptions
setTrafficClass
in class NetClientOptions
trafficClass
- the value of traffic classpublic MySQLConnectOptions setTcpNoDelay(boolean tcpNoDelay)
TCPSSLOptions
setTcpNoDelay
in class NetClientOptions
tcpNoDelay
- true if TCP no delay is enabled (Nagle disabled)public MySQLConnectOptions setTcpKeepAlive(boolean tcpKeepAlive)
TCPSSLOptions
setTcpKeepAlive
in class NetClientOptions
tcpKeepAlive
- true if TCP keep alive is enabledpublic MySQLConnectOptions setSoLinger(int soLinger)
TCPSSLOptions
setSoLinger
in class NetClientOptions
soLinger
- true if SO_linger is enabledpublic MySQLConnectOptions setIdleTimeout(int idleTimeout)
TCPSSLOptions
TCPSSLOptions.setIdleTimeoutUnit(TimeUnit)
setIdleTimeout
in class NetClientOptions
idleTimeout
- the timeout, in secondspublic MySQLConnectOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
TCPSSLOptions
setIdleTimeoutUnit
in class NetClientOptions
idleTimeoutUnit
- specify time unit.public MySQLConnectOptions setKeyCertOptions(KeyCertOptions options)
TCPSSLOptions
setKeyCertOptions
in class NetClientOptions
options
- the key store optionspublic MySQLConnectOptions setKeyStoreOptions(JksOptions options)
TCPSSLOptions
setKeyStoreOptions
in class NetClientOptions
options
- the key store in jks formatpublic MySQLConnectOptions setPfxKeyCertOptions(PfxOptions options)
TCPSSLOptions
setPfxKeyCertOptions
in class NetClientOptions
options
- the key cert options in pfx formatpublic MySQLConnectOptions setPemKeyCertOptions(PemKeyCertOptions options)
TCPSSLOptions
setPemKeyCertOptions
in class NetClientOptions
options
- the options in pem formatpublic MySQLConnectOptions setTrustOptions(TrustOptions options)
TCPSSLOptions
setTrustOptions
in class NetClientOptions
options
- the trust optionspublic MySQLConnectOptions setTrustStoreOptions(JksOptions options)
TCPSSLOptions
setTrustStoreOptions
in class NetClientOptions
options
- the trust options in jks formatpublic MySQLConnectOptions setPemTrustOptions(PemTrustOptions options)
TCPSSLOptions
setPemTrustOptions
in class NetClientOptions
options
- the trust options in pem formatpublic MySQLConnectOptions setPfxTrustOptions(PfxOptions options)
TCPSSLOptions
setPfxTrustOptions
in class NetClientOptions
options
- the trust options in pfx formatpublic MySQLConnectOptions addEnabledCipherSuite(String suite)
TCPSSLOptions
addEnabledCipherSuite
in class NetClientOptions
suite
- the suiteTCPSSLOptions.getEnabledCipherSuites()
public MySQLConnectOptions addEnabledSecureTransportProtocol(String protocol)
TCPSSLOptions
addEnabledSecureTransportProtocol
in class NetClientOptions
protocol
- the SSL/TLS protocol to enablepublic MySQLConnectOptions removeEnabledSecureTransportProtocol(String protocol)
TCPSSLOptions
removeEnabledSecureTransportProtocol
in class NetClientOptions
protocol
- the SSL/TLS protocol to disablepublic MySQLConnectOptions setUseAlpn(boolean useAlpn)
TCPSSLOptions
setUseAlpn
in class NetClientOptions
useAlpn
- true when Application-Layer Protocol Negotiation should be usedpublic MySQLConnectOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
TCPSSLOptions
setSslEngineOptions
in class NetClientOptions
sslEngineOptions
- the ssl engine to usepublic MySQLConnectOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions
in class NetClientOptions
public MySQLConnectOptions setTcpFastOpen(boolean tcpFastOpen)
TCPSSLOptions
TCP_FASTOPEN
option - only with linux native transport.setTcpFastOpen
in class NetClientOptions
tcpFastOpen
- the fast open valuepublic MySQLConnectOptions setTcpCork(boolean tcpCork)
TCPSSLOptions
TCP_CORK
option - only with linux native transport.setTcpCork
in class NetClientOptions
tcpCork
- the cork valuepublic MySQLConnectOptions setTcpQuickAck(boolean tcpQuickAck)
TCPSSLOptions
TCP_QUICKACK
option - only with linux native transport.setTcpQuickAck
in class NetClientOptions
tcpQuickAck
- the quick ack valuepublic ClientOptionsBase setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions
in class NetClientOptions
public MySQLConnectOptions addCrlPath(String crlPath) throws NullPointerException
TCPSSLOptions
addCrlPath
in class NetClientOptions
crlPath
- the pathNullPointerException
public MySQLConnectOptions addCrlValue(Buffer crlValue) throws NullPointerException
TCPSSLOptions
addCrlValue
in class NetClientOptions
crlValue
- the valueNullPointerException
public MySQLConnectOptions setTrustAll(boolean trustAll)
ClientOptionsBase
setTrustAll
in class NetClientOptions
trustAll
- true if all should be trustedpublic MySQLConnectOptions setConnectTimeout(int connectTimeout)
ClientOptionsBase
setConnectTimeout
in class NetClientOptions
connectTimeout
- connect timeout, in mspublic MySQLConnectOptions setMetricsName(String metricsName)
ClientOptionsBase
setMetricsName
in class NetClientOptions
metricsName
- the metrics namepublic MySQLConnectOptions setReconnectAttempts(int attempts)
NetClientOptions
setReconnectAttempts
in class NetClientOptions
attempts
- the maximum number of reconnect attemptspublic MySQLConnectOptions setReconnectInterval(long interval)
NetClientOptions
setReconnectInterval
in class NetClientOptions
interval
- the reconnect interval in mspublic MySQLConnectOptions setHostnameVerificationAlgorithm(String hostnameVerificationAlgorithm)
NetClientOptions
setHostnameVerificationAlgorithm
in class NetClientOptions
hostnameVerificationAlgorithm
- should be HTTPS, LDAPS or an empty Stringpublic MySQLConnectOptions setLogActivity(boolean logEnabled)
NetworkOptions
setLogActivity
in class NetClientOptions
logEnabled
- true for logging the network activitypublic MySQLConnectOptions setProxyOptions(ProxyOptions proxyOptions)
ClientOptionsBase
setProxyOptions
in class NetClientOptions
proxyOptions
- proxy options objectpublic MySQLConnectOptions setLocalAddress(String localAddress)
ClientOptionsBase
setLocalAddress
in class NetClientOptions
localAddress
- the local addresspublic MySQLConnectOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
TCPSSLOptions
setEnabledSecureTransportProtocols
in class NetClientOptions
enabledSecureTransportProtocols
- the SSL/TLS protocols to enablepublic MySQLConnectOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
TCPSSLOptions
setSslHandshakeTimeout
in class NetClientOptions
sslHandshakeTimeout
- the SSL handshake timeout to set, in millisecondspublic MySQLConnectOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
TCPSSLOptions
setSslHandshakeTimeoutUnit
in class NetClientOptions
sslHandshakeTimeoutUnit
- specify time unit.public MySQLConnectOptions setTracingPolicy(TracingPolicy tracingPolicy)
SqlConnectOptions
setTracingPolicy
in class SqlConnectOptions
tracingPolicy
- the tracing policyprotected void init()
init
in class SqlConnectOptions
public JsonObject toJson()
ClientOptionsBase
toJson
in class SqlConnectOptions
public SocketAddress getSocketAddress()
getSocketAddress
in class SqlConnectOptions
public boolean isUsingDomainSocket()
Copyright © 2021 Eclipse. All rights reserved.