public class MySQLConnectionFactory extends SqlConnectionFactoryBase implements ConnectionFactory
cachePreparedStatements, clientCloseFuture, context, database, netClient, password, preparedStatementCacheSize, preparedStatementCacheSqlFilter, properties, socketAddress, username| Constructor and Description |
|---|
MySQLConnectionFactory(EventLoopContext context,
MySQLConnectOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureNetClientOptions(NetClientOptions netClientOptions)
Apply the configuration to the
NetClientOptions for connecting to the database. |
protected void |
doConnectInternal(Promise<Connection> promise)
Perform establishing connection to the server.
|
protected void |
initializeConfiguration(SqlConnectOptions connectOptions)
Initialize the configuration after the common configuration have been initialized.
|
close, connectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasEventLoopContext, close, connectpublic MySQLConnectionFactory(EventLoopContext context, MySQLConnectOptions options)
protected void initializeConfiguration(SqlConnectOptions connectOptions)
SqlConnectionFactoryBaseinitializeConfiguration in class SqlConnectionFactoryBaseconnectOptions - the concrete options for initializing configuration by a specific connection factory.protected void configureNetClientOptions(NetClientOptions netClientOptions)
SqlConnectionFactoryBaseNetClientOptions for connecting to the database.configureNetClientOptions in class SqlConnectionFactoryBasenetClientOptions - NetClient options to applyprotected void doConnectInternal(Promise<Connection> promise)
SqlConnectionFactoryBasedoConnectInternal in class SqlConnectionFactoryBasepromise - the result handlerCopyright © 2021. All rights reserved.