Class DB2Pool

  • All Implemented Interfaces:
    RxDelegate

    @Deprecated
    public class DB2Pool
    extends Pool
    implements RxDelegate
    Deprecated.
    A pool of DB2 connections.

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

    • Field Detail

      • __TYPE_ARG

        public static final TypeArg<DB2Pool> __TYPE_ARG
        Deprecated.
    • Constructor Detail

      • DB2Pool

        public DB2Pool​(DB2Pool delegate)
        Deprecated.
      • DB2Pool

        public DB2Pool​(Object delegate)
        Deprecated.
    • Method Detail

      • equals

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

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

        public static DB2Pool pool​(DB2ConnectOptions database,
                                   PoolOptions options)
        Deprecated.
        Create a connection pool to the DB2 database configured with the given options.
        Parameters:
        database - the options for the connection
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static DB2Pool pool​(List<DB2ConnectOptions> databases,
                                   PoolOptions options)
        Deprecated.
        Create a connection pool to the DB2 databases with round-robin selection. Round-robin is applied when a new connection is created by the pool.
        Parameters:
        databases - the list of servers
        options - the options for creating the pool
        Returns:
        the connection pool
      • client

        public static SqlClient client​(DB2ConnectOptions database,
                                       PoolOptions options)
        Deprecated.
        Create a pooled client to the DB2 database configured with the given options.
        Parameters:
        database - the options for the connection
        options - the options for creating the pool
        Returns:
        the connection pool
      • client

        public static SqlClient client​(List<DB2ConnectOptions> databases,
                                       PoolOptions options)
        Deprecated.
        Create a client backed by a connection pool to the DB2 databases with round-robin selection. Round-robin is applied when a new connection is created by the pool.
        Parameters:
        databases - the list of servers
        options - the options for creating the pool
        Returns:
        the pooled client
      • connectionProvider

        public DB2Pool connectionProvider​(Function<Context,​Future<SqlConnection>> provider)
        Deprecated.
        Description copied from class: Pool
        Replace the default pool connection provider, the new provider returns a future connection for a given .

        A ConnectionFactory can be used as connection provider.

        Overrides:
        connectionProvider in class Pool
        Parameters:
        provider - the new connection provider
        Returns:
        a reference to this, so the API can be used fluently
      • connectionProvider

        public DB2Pool connectionProvider​(io.reactivex.functions.Function<Context,​io.reactivex.Single<SqlConnection>> provider)
        Deprecated.
        Description copied from class: Pool
        Replace the default pool connection provider, the new provider returns a future connection for a given .

        A ConnectionFactory can be used as connection provider.

        Overrides:
        connectionProvider in class Pool
        Parameters:
        provider - the new connection provider
        Returns:
        a reference to this, so the API can be used fluently
      • pool

        public static DB2Pool pool​(Supplier<Future<DB2ConnectOptions>> databases,
                                   PoolOptions poolOptions)
        Deprecated.
        Create a connection pool to the DB2 databases. The supplier is called to provide the options when a new connection is created by the pool.
        Parameters:
        databases - the databases supplier
        poolOptions - the options for creating the pool
        Returns:
        the connection pool
      • newInstance

        public static DB2Pool newInstance​(DB2Pool arg)
        Deprecated.