Search in sources :

Example 1 with ResetConnHandler

use of com.actiontech.dble.backend.mysql.nio.handler.ResetConnHandler in project dble by actiontech.

the class SetTestJob method okResponse.

@Override
public void okResponse(byte[] ok, BackendConnection conn) {
    doFinished(false);
    sc.write(ok);
    ResetConnHandler handler = new ResetConnHandler();
    conn.setResponseHandler(handler);
    ((MySQLConnection) conn).setComplexQuery(true);
    MySQLConnection connection = (MySQLConnection) conn;
    connection.write(connection.writeToBuffer(ResetConnectionPacket.RESET, connection.allocate()));
}
Also used : ResetConnHandler(com.actiontech.dble.backend.mysql.nio.handler.ResetConnHandler) MySQLConnection(com.actiontech.dble.backend.mysql.nio.MySQLConnection)

Aggregations

MySQLConnection (com.actiontech.dble.backend.mysql.nio.MySQLConnection)1 ResetConnHandler (com.actiontech.dble.backend.mysql.nio.handler.ResetConnHandler)1