public class MySQLConnectOptions extends SqlConnectOptions
MySQLConnection or MySQLPool.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COLLATION |
static Map<String,String> |
DEFAULT_CONNECTION_ATTRIBUTES |
static String |
DEFAULT_HOST |
static String |
DEFAULT_PASSWORD |
static int |
DEFAULT_PORT |
static String |
DEFAULT_SCHEMA |
static String |
DEFAULT_USER |
DEFAULT_CACHE_PREPARED_STATEMENTS, 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_ALPN, DEFAULT_USE_POOLED_BUFFERSDEFAULT_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) |
checkParameterNonNull, getCachePreparedStatements, getDatabase, getHost, getPassword, getPort, getPreparedStatementCacheMaxSize, getPreparedStatementCacheSqlLimit, getProperties, getUserequals, getHostnameVerificationAlgorithm, getReconnectAttempts, getReconnectInterval, hashCode, setSslgetConnectTimeout, getLocalAddress, getMetricsName, 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, isUseAlpn, isUsePooledBuffersgetLogActivity, 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_COLLATION
public MySQLConnectOptions()
public MySQLConnectOptions(JsonObject json)
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 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 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 setUsePooledBuffers(boolean usePooledBuffers)
setUsePooledBuffers 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 NetClientOptionsprotected void init()
init in class SqlConnectOptionspublic JsonObject toJson()
toJson in class SqlConnectOptionsCopyright © 2019 Eclipse. All rights reserved.