Example usage for io.vertx.mysqlclient MySQLConnection resetConnection

List of usage examples for io.vertx.mysqlclient MySQLConnection resetConnection

Introduction

In this page you can find the example usage for io.vertx.mysqlclient MySQLConnection resetConnection.

Prototype

@Fluent
MySQLConnection resetConnection(Handler<AsyncResult<Void>> handler);

Source Link

Document

Send a RESET_CONNECTION command to reset the session state.

Usage

From source file:examples.MySQLClientExamples.java

public void resetConnectionExample(MySQLConnection connection) {
    connection.resetConnection(ar -> {
        if (ar.succeeded()) {
            System.out.println("Connection has been reset now");
        } else {//from  w ww.j  ava 2  s  .c  om
            System.out.println("Failure: " + ar.cause().getMessage());
        }
    });
}