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_LIMITDEFAULT_HOSTNAME_VERIFICATION_ALGORITHM, DEFAULT_RECONNECT_ATTEMPTS, DEFAULT_RECONNECT_INTERVALDEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALLDEFAULT_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_ALPNDEFAULT_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) |
getCachePreparedStatements, getDatabase, getHost, getPassword, getPort, getPreparedStatementCacheMaxSize, getPreparedStatementCacheSqlFilter, getProperties, getTracingPolicy, getUseraddNonProxyHost, getApplicationLayerProtocols, getHostnameVerificationAlgorithm, getReconnectAttempts, getReconnectInterval, setApplicationLayerProtocols, setNonProxyHostsgetConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getProxyOptions, isTrustAllgetCrlPaths, 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, isUseAlpngetLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePortpublic 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 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)
setSsl in class NetClientOptionspublic 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)
setHost in class SqlConnectOptionspublic MySQLConnectOptions setPort(int port)
setPort in class SqlConnectOptionspublic MySQLConnectOptions setUser(String user)
setUser in class SqlConnectOptionspublic MySQLConnectOptions setPassword(String password)
setPassword in class SqlConnectOptionspublic MySQLConnectOptions setDatabase(String database)
setDatabase in class SqlConnectOptionspublic MySQLConnectOptions setCachePreparedStatements(boolean cachePreparedStatements)
setCachePreparedStatements in class SqlConnectOptionspublic MySQLConnectOptions setPreparedStatementCacheMaxSize(int preparedStatementCacheMaxSize)
setPreparedStatementCacheMaxSize in class SqlConnectOptionspublic MySQLConnectOptions setPreparedStatementCacheSqlFilter(Predicate<String> predicate)
setPreparedStatementCacheSqlFilter in class SqlConnectOptionspublic MySQLConnectOptions setPreparedStatementCacheSqlLimit(int preparedStatementCacheSqlLimit)
setPreparedStatementCacheSqlLimit in class SqlConnectOptionspublic MySQLConnectOptions setProperties(Map<String,String> properties)
setProperties in class SqlConnectOptionspublic MySQLConnectOptions addProperty(String key, String value)
addProperty in class SqlConnectOptionspublic MySQLConnectOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize in class NetClientOptionspublic MySQLConnectOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in class NetClientOptionspublic MySQLConnectOptions setReuseAddress(boolean reuseAddress)
setReuseAddress in class NetClientOptionspublic MySQLConnectOptions setReusePort(boolean reusePort)
setReusePort in class NetClientOptionspublic MySQLConnectOptions setTrafficClass(int trafficClass)
setTrafficClass in class NetClientOptionspublic MySQLConnectOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in class NetClientOptionspublic MySQLConnectOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive in class NetClientOptionspublic MySQLConnectOptions setSoLinger(int soLinger)
setSoLinger in class NetClientOptionspublic MySQLConnectOptions setIdleTimeout(int idleTimeout)
setIdleTimeout in class NetClientOptionspublic MySQLConnectOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit in class NetClientOptionspublic MySQLConnectOptions setKeyCertOptions(KeyCertOptions options)
setKeyCertOptions in class NetClientOptionspublic MySQLConnectOptions setKeyStoreOptions(JksOptions options)
setKeyStoreOptions in class NetClientOptionspublic MySQLConnectOptions setPfxKeyCertOptions(PfxOptions options)
setPfxKeyCertOptions in class NetClientOptionspublic MySQLConnectOptions setPemKeyCertOptions(PemKeyCertOptions options)
setPemKeyCertOptions in class NetClientOptionspublic MySQLConnectOptions setTrustOptions(TrustOptions options)
setTrustOptions in class NetClientOptionspublic MySQLConnectOptions setTrustStoreOptions(JksOptions options)
setTrustStoreOptions in class NetClientOptionspublic MySQLConnectOptions setPemTrustOptions(PemTrustOptions options)
setPemTrustOptions in class NetClientOptionspublic MySQLConnectOptions setPfxTrustOptions(PfxOptions options)
setPfxTrustOptions in class NetClientOptionspublic MySQLConnectOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite in class NetClientOptionspublic MySQLConnectOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol in class NetClientOptionspublic MySQLConnectOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol in class NetClientOptionspublic MySQLConnectOptions setUseAlpn(boolean useAlpn)
setUseAlpn in class NetClientOptionspublic MySQLConnectOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
setSslEngineOptions in class NetClientOptionspublic MySQLConnectOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions in class NetClientOptionspublic MySQLConnectOptions setTcpFastOpen(boolean tcpFastOpen)
setTcpFastOpen in class NetClientOptionspublic MySQLConnectOptions setTcpCork(boolean tcpCork)
setTcpCork in class NetClientOptionspublic MySQLConnectOptions setTcpQuickAck(boolean tcpQuickAck)
setTcpQuickAck in class NetClientOptionspublic ClientOptionsBase setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions in class NetClientOptionspublic MySQLConnectOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath in class NetClientOptionsNullPointerExceptionpublic MySQLConnectOptions addCrlValue(Buffer crlValue) throws NullPointerException
addCrlValue in class NetClientOptionsNullPointerExceptionpublic MySQLConnectOptions setTrustAll(boolean trustAll)
setTrustAll in class NetClientOptionspublic MySQLConnectOptions setConnectTimeout(int connectTimeout)
setConnectTimeout in class NetClientOptionspublic MySQLConnectOptions setMetricsName(String metricsName)
setMetricsName in class NetClientOptionspublic MySQLConnectOptions setReconnectAttempts(int attempts)
setReconnectAttempts in class NetClientOptionspublic MySQLConnectOptions setReconnectInterval(long interval)
setReconnectInterval in class NetClientOptionspublic MySQLConnectOptions setHostnameVerificationAlgorithm(String hostnameVerificationAlgorithm)
setHostnameVerificationAlgorithm in class NetClientOptionspublic MySQLConnectOptions setLogActivity(boolean logEnabled)
setLogActivity in class NetClientOptionspublic MySQLConnectOptions setProxyOptions(ProxyOptions proxyOptions)
setProxyOptions in class NetClientOptionspublic MySQLConnectOptions setLocalAddress(String localAddress)
setLocalAddress in class NetClientOptionspublic MySQLConnectOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols in class NetClientOptionspublic MySQLConnectOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout in class NetClientOptionspublic MySQLConnectOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit in class NetClientOptionspublic MySQLConnectOptions setTracingPolicy(TracingPolicy tracingPolicy)
setTracingPolicy in class SqlConnectOptionsprotected void init()
init in class SqlConnectOptionspublic JsonObject toJson()
toJson in class SqlConnectOptionspublic SocketAddress getSocketAddress()
getSocketAddress in class SqlConnectOptionspublic boolean isUsingDomainSocket()
Copyright © 2021 Eclipse. All rights reserved.