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 OraclePool
connectHandler(Handler<SqlConnection> handler)
Set an handler called when the pool has established a connection to the database.OraclePool
connectionProvider(io.reactivex.functions.Function<Context,io.reactivex.Single<SqlConnection>> provider)
Replace the default pool connection provider, the newprovider
returns a future connection for a given .OraclePool
connectionProvider(Function<Context,Future<SqlConnection>> provider)
Replace the default pool connection provider, the newprovider
returns a future connection for a given .boolean
equals(Object o)
OraclePool
getDelegate()
int
hashCode()
static OraclePool
newInstance(OraclePool arg)
static OraclePool
pool(OracleConnectOptions connectOptions, PoolOptions poolOptions)
static OraclePool
pool(Vertx vertx, OracleConnectOptions connectOptions, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
with a specific instance.static OraclePool
pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
with a specific instance.static OraclePool
pool(Vertx vertx, Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
with a specific instance.static OraclePool
pool(String connectionUri, PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)
but connection options are created from the providedconnectionUri
.static OraclePool
pool(Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions)
Create a connection pool to the Oracledatabases
.String
toString()
-
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, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction, 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:
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
-
connectionProvider
public OraclePool connectionProvider(io.reactivex.functions.Function<Context,io.reactivex.Single<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
-
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)
-
-