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(Vertx vertx,
io.vertx.oracleclient.OracleConnectOptions connectOptions,
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, size, withConnection, withConnection, withTransaction, withTransaction, withTransactionnewInstance, preparedQuerypublic static final io.vertx.lang.rx.TypeArg<OraclePool> __TYPE_ARG
public io.vertx.oracleclient.OraclePool getDelegate()
getDelegate in class Poolpublic 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)
PoolThis 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 Poolhandler - the handlerpublic OraclePool connectionProvider(java.util.function.Function<Context,Future<SqlConnection>> provider)
Poolprovider returns a future connection for a
given .
A ConnectionFactory can be used as connection provider.
connectionProvider in class Poolprovider - the new connection providerpublic static OraclePool newInstance(io.vertx.oracleclient.OraclePool arg)
Copyright © 2023 Eclipse. All rights reserved.