Package io.vertx.reactivex.oracleclient
Class OraclePool
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.SqlClient
-
- io.vertx.reactivex.sqlclient.Pool
-
- io.vertx.reactivex.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OraclePoolconnectHandler(Handler<SqlConnection> handler)Set an handler called when the pool has established a connection to the database.OraclePoolconnectionProvider(io.reactivex.functions.Function<Context,io.reactivex.Single<SqlConnection>> provider)Replace the default pool connection provider, the newproviderreturns a future connection for a given .OraclePoolconnectionProvider(Function<Context,Future<SqlConnection>> provider)Replace the default pool connection provider, the newproviderreturns a future connection for a given .booleanequals(Object o)OraclePoolgetDelegate()inthashCode()static OraclePoolnewInstance(OraclePool arg)static OraclePoolpool(OracleConnectOptions connectOptions, PoolOptions poolOptions)static OraclePoolpool(Vertx vertx, OracleConnectOptions connectOptions, PoolOptions poolOptions)Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.static OraclePoolpool(Vertx vertx, String connectionUri, PoolOptions poolOptions)Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.static OraclePoolpool(String connectionUri, PoolOptions poolOptions)Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)but connection options are created from the providedconnectionUri.StringtoString()-
Methods inherited from class io.vertx.reactivex.sqlclient.Pool
close, close, getConnection, getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxClose, rxGetConnection, rxWithConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
-
Methods inherited from class io.vertx.reactivex.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
-
connectionProvider
public OraclePool connectionProvider(io.reactivex.functions.Function<Context,io.reactivex.Single<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
-
newInstance
public static OraclePool newInstance(OraclePool arg)
-
-