Package io.vertx.rxjava.oracleclient
Class OraclePool
- java.lang.Object
-
- io.vertx.rxjava.sqlclient.SqlClient
-
- io.vertx.rxjava.sqlclient.Pool
-
- io.vertx.rxjava.oracleclient.OraclePool
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OraclePool>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OraclePool(OraclePool delegate)OraclePool(Object delegate)
-
Method Summary
-
Methods inherited from class io.vertx.rxjava.sqlclient.Pool
close, close, getConnection, getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxClose, rxGetConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
-
Methods inherited from class io.vertx.rxjava.sqlclient.SqlClient
newInstance, preparedQuery
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<OraclePool> __TYPE_ARG
-
-
Constructor Detail
-
OraclePool
public OraclePool(OraclePool delegate)
-
OraclePool
public OraclePool(Object delegate)
-
-
Method Detail
-
getDelegate
public OraclePool getDelegate()
- Overrides:
getDelegatein classPool
-
pool
public static OraclePool pool(OracleConnectOptions connectOptions, PoolOptions poolOptions)
-
pool
public static OraclePool pool(Vertx vertx, OracleConnectOptions connectOptions, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.- Parameters:
vertx-connectOptions-poolOptions-- Returns:
-
pool
public static OraclePool pool(String connectionUri, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)but connection options are created from the providedconnectionUri.- Parameters:
connectionUri-poolOptions-- Returns:
-
pool
public static OraclePool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.- Parameters:
vertx-connectionUri-poolOptions-- Returns:
-
connectHandler
public OraclePool connectHandler(Handler<SqlConnection> handler)
Description copied from class:PoolSet an handler called when the pool has established a connection to the database.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.- Overrides:
connectHandlerin classPool- Parameters:
handler- the handler- Returns:
- a reference to this, so the API can be used fluently
-
connectionProvider
public OraclePool connectionProvider(Function<Context,Future<SqlConnection>> provider)
Description copied from class:PoolReplace the default pool connection provider, the newproviderreturns a future connection for a given .A
ConnectionFactorycan be used as connection provider.- Overrides:
connectionProviderin classPool- Parameters:
provider- the new connection provider- Returns:
- a reference to this, so the API can be used fluently
-
pool
public static OraclePool pool(Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions)
Create a connection pool to the Oracledatabases. The supplier is called to provide the options when a new connection is created by the pool.- Parameters:
databases- the databases supplierpoolOptions- the options for creating the pool- Returns:
- the connection pool
-
pool
public static OraclePool pool(Vertx vertx, Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.- Parameters:
vertx-databases-poolOptions-- Returns:
-
newInstance
public static OraclePool newInstance(OraclePool arg)
-
-