public class MySQLConnectionImpl extends SqlConnectionImpl<MySQLConnectionImpl> implements MySQLConnection
conn, context| Constructor and Description |
|---|
MySQLConnectionImpl(MySQLConnectionFactory factory,
Context context,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
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 void |
connect(Vertx vertx,
MySQLConnectOptions options,
Handler<AsyncResult<MySQLConnection>> handler)
Create a connection to MySQL server with the given
connectOptions. |
MySQLConnection |
debug(Handler<AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
MySQLConnection |
getInternalStatistics(Handler<AsyncResult<String>> handler)
Send a STATISTICS command to get a human readable string of the server internal status.
|
void |
handleNotification(int processId,
String channel,
String payload) |
MySQLConnection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
MySQLConnection |
resetConnection(Handler<AsyncResult<Void>> handler)
Send a RESET_CONNECTION command to reset the session state.
|
MySQLConnection |
setOption(MySQLSetOption option,
Handler<AsyncResult<Void>> handler)
Send a SET_OPTION command to set options for the current connection.
|
MySQLConnection |
specifySchema(String schemaName,
Handler<AsyncResult<Void>> handler)
Send a INIT_DB command to change the default schema of the connection.
|
begin, begin, close, closeHandler, exceptionHandler, handleClosed, handleException, isSSL, schedule, schedulepreparepreparedBatch, preparedBatch, preparedQuery, preparedQuery, preparedQuery, preparedQuery, query, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseHandler, connect, exceptionHandler, prepare, preparedQuery, preparedQuery, preparedQuery, preparedQuery, query, querybegin, close, isSSL, preparedBatch, preparedBatchpublic MySQLConnectionImpl(MySQLConnectionFactory factory, Context context, Connection conn)
public static void connect(Vertx vertx, MySQLConnectOptions options, Handler<AsyncResult<MySQLConnection>> handler)
MySQLConnectionconnectOptions.connect in interface MySQLConnectionvertx - the vertx instanceoptions - the options for the connectionhandler - the handler called with the connection or the failurepublic void handleNotification(int processId,
String channel,
String payload)
handleNotification in interface Connection.HolderhandleNotification in class SqlConnectionImpl<MySQLConnectionImpl>public MySQLConnection ping(Handler<AsyncResult<Void>> handler)
MySQLConnectionping in interface MySQLConnectionhandler - the handler notified when the server responses to clientpublic 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 MySQLConnection getInternalStatistics(Handler<AsyncResult<String>> handler)
MySQLConnectiongetInternalStatistics in interface MySQLConnectionhandler - the handler notified with the execution resultpublic MySQLConnection setOption(MySQLSetOption option, Handler<AsyncResult<Void>> handler)
MySQLConnectionsetOption in interface MySQLConnectionoption - the options to sethandler - the handler notified with the execution resultpublic MySQLConnection resetConnection(Handler<AsyncResult<Void>> handler)
MySQLConnectionresetConnection in interface MySQLConnectionhandler - the handler notified with the execution resultpublic MySQLConnection debug(Handler<AsyncResult<Void>> handler)
MySQLConnectiondebug in interface MySQLConnectionhandler - the handler notified with the execution resultpublic MySQLConnection changeUser(MySQLAuthOptions options, Handler<AsyncResult<Void>> handler)
MySQLConnectionchangeUser in interface MySQLConnectionoptions - authentication optionshandler - the handlerCopyright © 2020. All rights reserved.