@Deprecated public interface DB2Pool extends Pool
Modifier and Type | Method and Description |
---|---|
static SqlClient |
client(DB2ConnectOptions database,
PoolOptions options)
Deprecated.
Create a pooled client to the DB2
database configured with the given options . |
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. |
static SqlClient |
client(String connectionUri)
Deprecated.
Like
client(String, PoolOptions) with default options. |
static SqlClient |
client(String connectionUri,
PoolOptions options)
Deprecated.
|
static SqlClient |
client(Vertx vertx,
DB2ConnectOptions database,
PoolOptions options)
Deprecated.
Like
client(DB2ConnectOptions, PoolOptions) with a specific
Vertx instance. |
static SqlClient |
client(Vertx vertx,
List<DB2ConnectOptions> databases,
PoolOptions options)
Deprecated.
Like
client(List, PoolOptions) with a specific
Vertx instance. |
static SqlClient |
client(Vertx vertx,
String connectionUri)
Deprecated.
Like
client(Vertx, String, PoolOptions) with default options. |
static SqlClient |
client(Vertx vertx,
String connectionUri,
PoolOptions options)
Deprecated.
|
DB2Pool |
connectHandler(Handler<SqlConnection> handler)
Deprecated.
Set an handler called when the pool has established a connection to the database.
|
DB2Pool |
connectionProvider(java.util.function.Function<Context,Future<SqlConnection>> provider)
Deprecated.
Replace the default pool connection provider, the new
provider returns a future connection for a
given Context . |
static DB2Pool |
pool(DB2ConnectOptions database,
PoolOptions options)
Deprecated.
Create a connection pool to the DB2
database configured with the given options . |
static DB2Pool |
pool(List<DB2ConnectOptions> databases,
PoolOptions options)
Deprecated.
Create a connection pool to the DB2
databases with round-robin selection. |
static DB2Pool |
pool(String connectionUri)
Deprecated.
Like
pool(String, PoolOptions) with default options. |
static DB2Pool |
pool(String connectionUri,
PoolOptions options)
Deprecated.
|
static DB2Pool |
pool(java.util.function.Supplier<Future<DB2ConnectOptions>> databases,
PoolOptions poolOptions)
Deprecated.
Create a connection pool to the DB2
databases . |
static DB2Pool |
pool(Vertx vertx,
DB2ConnectOptions database,
PoolOptions options)
Deprecated.
Like
pool(DB2ConnectOptions, PoolOptions) with a specific
Vertx instance. |
static DB2Pool |
pool(Vertx vertx,
List<DB2ConnectOptions> databases,
PoolOptions options)
Deprecated.
Like
pool(List, PoolOptions) with a specific
Vertx instance. |
static DB2Pool |
pool(Vertx vertx,
String connectionUri)
Deprecated.
Like
pool(Vertx, String,PoolOptions) with default options. |
static DB2Pool |
pool(Vertx vertx,
String connectionUri,
PoolOptions options)
Deprecated.
|
static DB2Pool |
pool(Vertx vertx,
java.util.function.Supplier<Future<DB2ConnectOptions>> databases,
PoolOptions poolOptions)
Deprecated.
Like
pool(Supplier, PoolOptions) with a specific Vertx instance. |
close, getConnection, getConnection, pool, pool, pool, preparedQuery, query, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
close, preparedQuery
static DB2Pool pool(String connectionUri)
pool(String, PoolOptions)
with default options.static DB2Pool pool(String connectionUri, PoolOptions options)
static DB2Pool pool(Vertx vertx, String connectionUri)
pool(Vertx, String,PoolOptions)
with default options.static DB2Pool pool(Vertx vertx, String connectionUri, PoolOptions options)
static DB2Pool pool(DB2ConnectOptions database, PoolOptions options)
database
configured with the given options
.database
- the options for the connectionoptions
- the options for creating the poolstatic DB2Pool pool(Vertx vertx, DB2ConnectOptions database, PoolOptions options)
pool(DB2ConnectOptions, PoolOptions)
with a specific
Vertx
instance.static DB2Pool pool(List<DB2ConnectOptions> databases, PoolOptions options)
databases
with round-robin selection.
Round-robin is applied when a new connection is created by the pool.databases
- the list of serversoptions
- the options for creating the poolstatic DB2Pool pool(Vertx vertx, List<DB2ConnectOptions> databases, PoolOptions options)
pool(List, PoolOptions)
with a specific
Vertx
instance.static DB2Pool pool(java.util.function.Supplier<Future<DB2ConnectOptions>> databases, PoolOptions poolOptions)
databases
. The supplier is called
to provide the options when a new connection is created by the pool.databases
- the databases supplierpoolOptions
- the options for creating the poolstatic DB2Pool pool(Vertx vertx, java.util.function.Supplier<Future<DB2ConnectOptions>> databases, PoolOptions poolOptions)
pool(Supplier, PoolOptions)
with a specific Vertx
instance.static SqlClient client(String connectionUri)
client(String, PoolOptions)
with default options.static SqlClient client(String connectionUri, PoolOptions options)
static SqlClient client(Vertx vertx, String connectionUri)
client(Vertx, String, PoolOptions)
with default options.static SqlClient client(Vertx vertx, String connectionUri, PoolOptions options)
static SqlClient client(DB2ConnectOptions database, PoolOptions options)
database
configured with the given options
.database
- the options for the connectionoptions
- the options for creating the poolstatic SqlClient client(Vertx vertx, DB2ConnectOptions database, PoolOptions options)
client(DB2ConnectOptions, PoolOptions)
with a specific
Vertx
instance.static SqlClient client(List<DB2ConnectOptions> databases, PoolOptions options)
databases
with round-robin selection.
Round-robin is applied when a new connection is created by the pool.databases
- the list of serversoptions
- the options for creating the poolstatic SqlClient client(Vertx vertx, List<DB2ConnectOptions> databases, PoolOptions options)
client(List, PoolOptions)
with a specific
Vertx
instance.DB2Pool connectHandler(Handler<SqlConnection> handler)
Pool
This handler allows interactions with the database before the connection is added to the pool.
When the handler has finished, it must call SqlClient.close()
to release the connection
to the pool.
connectHandler
in interface Pool
handler
- the handlerDB2Pool connectionProvider(java.util.function.Function<Context,Future<SqlConnection>> provider)
Pool
provider
returns a future connection for a
given Context
.
A ConnectionFactory
can be used as connection provider.
connectionProvider
in interface Pool
provider
- the new connection providerCopyright © 2024 Eclipse. All rights reserved.