Class DB2Connection

  • All Implemented Interfaces:
    RxDelegate

    public class DB2Connection
    extends SqlConnection
    implements RxDelegate
    A connection to DB2 server.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • DB2Connection

        public DB2Connection​(DB2Connection delegate)
      • DB2Connection

        public DB2Connection​(Object delegate)
    • Method Detail

      • connect

        public static Future<DB2Connection> connect​(io.vertx.reactivex.core.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
      • rxConnect

        public static io.reactivex.Single<DB2Connection> rxConnect​(io.vertx.reactivex.core.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

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

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

        public io.reactivex.Completable rxPing()
        Send a PING command to check if the server is alive.
        Returns:
        a future notified with the server response
      • debug

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

        public io.reactivex.Completable rxDebug()
        Send a DEBUG command to dump debug information to the server's stdout.
        Returns:
        a future notified with the execution result
      • cast

        public static DB2Connection cast​(SqlConnection sqlConnection)
        Cast a to DB2Connection. This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.
        Parameters:
        sqlConnection - the connection to cast
        Returns:
        a instance