Example usage for io.vertx.mysqlclient MySQLConnection ping

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

Introduction

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

Prototype

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

Source Link

Document

Send a PING command to check if the server is alive.

Usage

From source file:examples.MySQLClientExamples.java

public void pingExample(MySQLConnection connection) {
    connection.ping(ar -> {
        System.out.println("The server has responded to the PING");
    });/*w w  w .j  av  a  2s  .c o  m*/
}