public class MySQLConnectionImpl extends SqlConnectionImpl<MySQLConnectionImpl> implements MySQLConnection
conn, contextmetrics, tracer| Constructor and Description |
|---|
MySQLConnectionImpl(MySQLConnectionFactory factory,
ContextInternal context,
Connection conn,
QueryTracer tracer,
ClientMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
changeUser(MySQLAuthOptions options)
Like
MySQLConnection.changeUser(MySQLAuthOptions, Handler) but returns a Future of the asynchronous result |
MySQLConnection |
changeUser(MySQLAuthOptions options,
Handler<AsyncResult<Void>> handler)
Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state.
|
static Future<MySQLConnection> |
connect(ContextInternal ctx,
MySQLConnectOptions options) |
Future<Void> |
debug()
Like
MySQLConnection.debug(Handler) but returns a Future of the asynchronous result |
MySQLConnection |
debug(Handler<AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
Future<String> |
getInternalStatistics()
Like
MySQLConnection.getInternalStatistics(Handler) but returns a Future of the asynchronous result |
MySQLConnection |
getInternalStatistics(Handler<AsyncResult<String>> handler)
Send a STATISTICS command to get a human readable string of the server internal status.
|
Future<Void> |
ping()
Like
MySQLConnection.ping(Handler) but returns a Future of the asynchronous result |
MySQLConnection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
Future<Void> |
resetConnection()
Like
MySQLConnection.resetConnection(Handler) but returns a Future of the asynchronous result |
MySQLConnection |
resetConnection(Handler<AsyncResult<Void>> handler)
Send a RESET_CONNECTION command to reset the session state.
|
Future<Void> |
setOption(MySQLSetOption option)
Like
MySQLConnection.setOption(MySQLSetOption, Handler) but returns a Future of the asynchronous result |
MySQLConnection |
setOption(MySQLSetOption option,
Handler<AsyncResult<Void>> handler)
Send a SET_OPTION command to set options for the current connection.
|
Future<Void> |
specifySchema(String schemaName)
Like
MySQLConnection.specifySchema(String, Handler) but returns a Future of the asynchronous result |
MySQLConnection |
specifySchema(String schemaName,
Handler<AsyncResult<Void>> handler)
Send a INIT_DB command to change the default schema of the connection.
|
begin, begin, close, close, closeHandler, databaseMetadata, exceptionHandler, handleClosed, handleEvent, handleException, isSSL, promise, promise, scheduleprepare, prepareappendQueryPlaceholder, preparedQuery, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcast, closeHandler, connect, connect, connect, connect, exceptionHandler, preparebegin, begin, close, databaseMetadata, isSSL, prepareclose, preparedQuery, querypublic MySQLConnectionImpl(MySQLConnectionFactory factory, ContextInternal context, Connection conn, QueryTracer tracer, ClientMetrics metrics)
public static Future<MySQLConnection> connect(ContextInternal ctx, MySQLConnectOptions options)
public MySQLConnection ping(Handler<AsyncResult<Void>> handler)
MySQLConnectionping in interface MySQLConnectionhandler - the handler notified when the server responses to clientpublic Future<Void> ping()
MySQLConnectionMySQLConnection.ping(Handler) but returns a Future of the asynchronous resultping in interface MySQLConnectionpublic MySQLConnection specifySchema(String schemaName, Handler<AsyncResult<Void>> handler)
MySQLConnectionspecifySchema in interface MySQLConnectionschemaName - name of the schema to change tohandler - the handler notified with the execution resultpublic Future<Void> specifySchema(String schemaName)
MySQLConnectionMySQLConnection.specifySchema(String, Handler) but returns a Future of the asynchronous resultspecifySchema in interface MySQLConnectionpublic MySQLConnection getInternalStatistics(Handler<AsyncResult<String>> handler)
MySQLConnectiongetInternalStatistics in interface MySQLConnectionhandler - the handler notified with the execution resultpublic Future<String> getInternalStatistics()
MySQLConnectionMySQLConnection.getInternalStatistics(Handler) but returns a Future of the asynchronous resultgetInternalStatistics in interface MySQLConnectionpublic MySQLConnection setOption(MySQLSetOption option, Handler<AsyncResult<Void>> handler)
MySQLConnectionsetOption in interface MySQLConnectionoption - the options to sethandler - the handler notified with the execution resultpublic Future<Void> setOption(MySQLSetOption option)
MySQLConnectionMySQLConnection.setOption(MySQLSetOption, Handler) but returns a Future of the asynchronous resultsetOption in interface MySQLConnectionpublic MySQLConnection resetConnection(Handler<AsyncResult<Void>> handler)
MySQLConnectionresetConnection in interface MySQLConnectionhandler - the handler notified with the execution resultpublic Future<Void> resetConnection()
MySQLConnectionMySQLConnection.resetConnection(Handler) but returns a Future of the asynchronous resultresetConnection in interface MySQLConnectionpublic MySQLConnection debug(Handler<AsyncResult<Void>> handler)
MySQLConnectiondebug in interface MySQLConnectionhandler - the handler notified with the execution resultpublic Future<Void> debug()
MySQLConnectionMySQLConnection.debug(Handler) but returns a Future of the asynchronous resultdebug in interface MySQLConnectionpublic MySQLConnection changeUser(MySQLAuthOptions options, Handler<AsyncResult<Void>> handler)
MySQLConnectionchangeUser in interface MySQLConnectionoptions - authentication optionshandler - the handlerpublic Future<Void> changeUser(MySQLAuthOptions options)
MySQLConnectionMySQLConnection.changeUser(MySQLAuthOptions, Handler) but returns a Future of the asynchronous resultchangeUser in interface MySQLConnectionCopyright © 2021. All rights reserved.