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
-
public class OraclePool extends Pool
Represents a pool of connection to interact with an Oracle database. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OraclePool>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OraclePool(io.vertx.oracleclient.OraclePool delegate)OraclePool(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OraclePoolconnectHandler(io.vertx.core.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,io.vertx.core.Future<SqlConnection>> provider)Replace the default pool connection provider, the newproviderreturns a future connection for a given .booleanequals(Object o)io.vertx.oracleclient.OraclePoolgetDelegate()inthashCode()static OraclePoolnewInstance(io.vertx.oracleclient.OraclePool arg)static OraclePoolpool(io.vertx.oracleclient.OracleConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)static OraclePoolpool(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.static OraclePoolpool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.static OraclePoolpool(String connectionUri, io.vertx.sqlclient.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(io.vertx.oracleclient.OraclePool delegate)
-
OraclePool
public OraclePool(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.oracleclient.OraclePool getDelegate()
- Overrides:
getDelegatein classPool
-
pool
public static OraclePool pool(io.vertx.oracleclient.OracleConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
-
pool
public static OraclePool pool(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions, io.vertx.sqlclient.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, io.vertx.sqlclient.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, io.vertx.sqlclient.PoolOptions poolOptions)
Likepool(io.vertx.oracleclient.OracleConnectOptions, io.vertx.sqlclient.PoolOptions)with a specific instance.- Parameters:
vertx-connectionUri-poolOptions-- Returns:
-
connectHandler
public OraclePool connectHandler(io.vertx.core.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,io.vertx.core.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(io.vertx.oracleclient.OraclePool arg)
-
-