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, size, withConnection, withConnection, 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:
getDelegate
in 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:Pool
Set 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:
connectHandler
in 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:Pool
Replace the default pool connection provider, the newprovider
returns a future connection for a given .A
ConnectionFactory
can be used as connection provider.- Overrides:
connectionProvider
in classPool
- Parameters:
provider
- the new connection provider- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static OraclePool newInstance(OraclePool arg)
-
-