Interface DB2Connection

    • Method Detail

      • connect

        static Future<DB2Connection> connect​(Vertx vertx,
                                             DB2ConnectOptions connectOptions)
        Create a connection to DB2 server with the given connectOptions.
        Parameters:
        vertx - the vertx instance
        connectOptions - the options for the connection
        Returns:
        a future notified with the connection or the failure
      • closeHandler

        DB2Connection closeHandler​(Handler<Void> handler)
        Description copied from interface: SqlConnection
        Set an handler called when the connection is closed.
        Specified by:
        closeHandler in interface SqlConnection
        Parameters:
        handler - the handler
        Returns:
        a reference to this, so the API can be used fluently
      • ping

        Future<Void> ping()
        Send a PING command to check if the server is alive.
        Returns:
        a future notified with the server response
      • debug

        Future<Void> debug()
        Send a DEBUG command to dump debug information to the server's stdout.
        Returns:
        a future notified with the execution result