public class OraclePool extends Pool
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<OraclePool> |
__TYPE_ARG |
Constructor and Description |
---|
OraclePool(io.vertx.oracleclient.OraclePool delegate) |
Modifier and Type | Method and Description |
---|---|
OraclePool |
connectHandler(Handler<SqlConnection> handler)
Set an handler called when the pool has established a connection to the database.
|
OraclePool |
connectionProvider(java.util.function.Function<Context,Future<SqlConnection>> provider)
Replace the default pool connection provider, the new
provider returns a future connection for a
given . |
boolean |
equals(Object o) |
io.vertx.oracleclient.OraclePool |
getDelegate() |
int |
hashCode() |
static OraclePool |
newInstance(io.vertx.oracleclient.OraclePool arg) |
static OraclePool |
pool(io.vertx.oracleclient.OracleConnectOptions connectOptions,
PoolOptions poolOptions) |
static OraclePool |
pool(java.util.function.Supplier<Future<io.vertx.oracleclient.OracleConnectOptions>> databases,
PoolOptions poolOptions)
Create a connection pool to the Oracle
databases . |
static OraclePool |
pool(Vertx vertx,
io.vertx.oracleclient.OracleConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions) with a specific instance. |
static OraclePool |
pool(Vertx vertx,
java.util.function.Supplier<Future<io.vertx.oracleclient.OracleConnectOptions>> databases,
PoolOptions poolOptions)
Like
pool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions) with a specific instance. |
String |
toString() |
close, close, getConnection, getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxClose, rxGetConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
newInstance, preparedQuery
public static final io.vertx.lang.rx.TypeArg<OraclePool> __TYPE_ARG
public io.vertx.oracleclient.OraclePool getDelegate()
getDelegate
in class Pool
public static OraclePool pool(io.vertx.oracleclient.OracleConnectOptions connectOptions, PoolOptions poolOptions)
public static OraclePool pool(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions, PoolOptions poolOptions)
pool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
with a specific instance.vertx
- connectOptions
- poolOptions
- public OraclePool 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(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
to release the connection
to the pool.
connectHandler
in class Pool
handler
- the handlerpublic OraclePool connectionProvider(java.util.function.Function<Context,Future<SqlConnection>> provider)
Pool
provider
returns a future connection for a
given .
A ConnectionFactory
can be used as connection provider.
connectionProvider
in class Pool
provider
- the new connection providerpublic static OraclePool pool(java.util.function.Supplier<Future<io.vertx.oracleclient.OracleConnectOptions>> 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 poolpublic static OraclePool pool(Vertx vertx, java.util.function.Supplier<Future<io.vertx.oracleclient.OracleConnectOptions>> databases, PoolOptions poolOptions)
pool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
with a specific instance.vertx
- databases
- poolOptions
- public static OraclePool newInstance(io.vertx.oracleclient.OraclePool arg)
Copyright © 2024 Eclipse. All rights reserved.