Class DB2Pool


  • public class DB2Pool
    extends Pool
    A pool of DB2 connections.

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

    • Constructor Detail

      • DB2Pool

        public DB2Pool​(io.vertx.db2client.DB2Pool delegate)
      • DB2Pool

        public DB2Pool​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.db2client.DB2Pool getDelegate()
        Overrides:
        getDelegate in class Pool
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Pool
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Pool
      • pool

        public static DB2Pool pool​(String connectionUri)
        Parameters:
        connectionUri -
        Returns:
      • pool

        public static DB2Pool pool​(String connectionUri,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        connectionUri -
        options -
        Returns:
      • pool

        public static DB2Pool pool​(Vertx vertx,
                                   String connectionUri)
        Parameters:
        vertx -
        connectionUri -
        Returns:
      • pool

        public static DB2Pool pool​(Vertx vertx,
                                   String connectionUri,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        connectionUri -
        options -
        Returns:
      • pool

        public static DB2Pool pool​(io.vertx.db2client.DB2ConnectOptions database,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        database - the options for the connection
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static DB2Pool pool​(Vertx vertx,
                                   io.vertx.db2client.DB2ConnectOptions database,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        database -
        options -
        Returns:
      • pool

        public static DB2Pool pool​(List<io.vertx.db2client.DB2ConnectOptions> databases,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        databases - the list of servers
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static DB2Pool pool​(Vertx vertx,
                                   List<io.vertx.db2client.DB2ConnectOptions> databases,
                                   io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        databases -
        options -
        Returns:
      • client

        public static SqlClient client​(String connectionUri)
        Parameters:
        connectionUri -
        Returns:
      • client

        public static SqlClient client​(String connectionUri,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        connectionUri -
        options -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       String connectionUri)
        Parameters:
        vertx -
        connectionUri -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       String connectionUri,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        connectionUri -
        options -
        Returns:
      • client

        public static SqlClient client​(io.vertx.db2client.DB2ConnectOptions database,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        database - the options for the connection
        options - the options for creating the pool
        Returns:
        the connection pool
      • client

        public static SqlClient client​(Vertx vertx,
                                       io.vertx.db2client.DB2ConnectOptions database,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        database -
        options -
        Returns:
      • client

        public static SqlClient client​(List<io.vertx.db2client.DB2ConnectOptions> databases,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        databases - the list of servers
        options - the options for creating the pool
        Returns:
        the pooled client
      • client

        public static SqlClient client​(Vertx vertx,
                                       List<io.vertx.db2client.DB2ConnectOptions> databases,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        databases -
        options -
        Returns:
      • connectionProvider

        public DB2Pool connectionProvider​(Function<Context,​io.smallrye.mutiny.Uni<SqlConnection>> provider)
        Overrides:
        connectionProvider in class Pool
        Parameters:
        provider - the new connection provider
        Returns:
        a reference to this, so the API can be used fluently
      • newInstance

        public static DB2Pool newInstance​(io.vertx.db2client.DB2Pool arg)