Package io.vertx.mutiny.db2client
Class DB2Pool
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.SqlClient
-
- io.vertx.mutiny.sqlclient.Pool
-
- io.vertx.mutiny.db2client.DB2Pool
-
public class DB2Pool extends Pool
A pool of DB2 connections. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<DB2Pool>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlClient
client(io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(Vertx vertx, io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(Vertx vertx, String connectionUri)
static SqlClient
client(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(Vertx vertx, List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(String connectionUri)
static SqlClient
client(String connectionUri, io.vertx.sqlclient.PoolOptions options)
static SqlClient
client(List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
DB2Pool
connectHandler(Consumer<SqlConnection> handler)
DB2Pool
connectionProvider(Function<Context,io.smallrye.mutiny.Uni<SqlConnection>> provider)
boolean
equals(Object o)
io.vertx.db2client.DB2Pool
getDelegate()
int
hashCode()
static DB2Pool
newInstance(io.vertx.db2client.DB2Pool arg)
static DB2Pool
pool(io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static DB2Pool
pool(Vertx vertx, io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
static DB2Pool
pool(Vertx vertx, String connectionUri)
static DB2Pool
pool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
static DB2Pool
pool(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.db2client.DB2ConnectOptions>> databases, io.vertx.sqlclient.PoolOptions poolOptions)
static DB2Pool
pool(Vertx vertx, List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
static DB2Pool
pool(String connectionUri)
static DB2Pool
pool(String connectionUri, io.vertx.sqlclient.PoolOptions options)
static DB2Pool
pool(Supplier<io.smallrye.mutiny.Uni<io.vertx.db2client.DB2ConnectOptions>> databases, io.vertx.sqlclient.PoolOptions poolOptions)
static DB2Pool
pool(List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
String
toString()
-
Methods inherited from class io.vertx.mutiny.sqlclient.Pool
close, closeAndAwait, closeAndForget, getConnection, getConnectionAndAwait, getConnectionAndForget, newInstance, pool, pool, pool, preparedQuery, query, size, withConnection, withConnectionAndAwait, withConnectionAndForget, withTransaction, withTransaction, withTransactionAndAwait, withTransactionAndAwait, withTransactionAndForget, withTransactionAndForget
-
Methods inherited from class io.vertx.mutiny.sqlclient.SqlClient
newInstance, preparedQuery
-
-
-
-
Constructor Detail
-
DB2Pool
public DB2Pool(io.vertx.db2client.DB2Pool delegate)
-
DB2Pool
public DB2Pool(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.db2client.DB2Pool getDelegate()
- Overrides:
getDelegate
in classPool
-
pool
public static DB2Pool pool(String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
connectionUri
-options
-- Returns:
-
pool
public static DB2Pool pool(Vertx vertx, String connectionUri)
- Parameters:
vertx
-connectionUri
-- Returns:
-
pool
public static DB2Pool pool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-connectionUri
-options
-- Returns:
-
pool
public static DB2Pool pool(io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
database
- the options for the connectionoptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static DB2Pool pool(Vertx vertx, io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-database
-options
-- Returns:
-
pool
public static DB2Pool pool(List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the list of serversoptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static DB2Pool pool(Vertx vertx, List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-databases
-options
-- Returns:
-
client
public static SqlClient client(String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
connectionUri
-options
-- Returns:
-
client
public static SqlClient client(Vertx vertx, String connectionUri)
- Parameters:
vertx
-connectionUri
-- Returns:
-
client
public static SqlClient client(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-connectionUri
-options
-- Returns:
-
client
public static SqlClient client(io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
database
- the options for the connectionoptions
- the options for creating the pool- Returns:
- the connection pool
-
client
public static SqlClient client(Vertx vertx, io.vertx.db2client.DB2ConnectOptions database, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-database
-options
-- Returns:
-
client
public static SqlClient client(List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
databases
- the list of serversoptions
- the options for creating the pool- Returns:
- the pooled client
-
client
public static SqlClient client(Vertx vertx, List<io.vertx.db2client.DB2ConnectOptions> databases, io.vertx.sqlclient.PoolOptions options)
- Parameters:
vertx
-databases
-options
-- Returns:
-
connectHandler
public DB2Pool connectHandler(Consumer<SqlConnection> handler)
- Overrides:
connectHandler
in classPool
- Parameters:
handler
- the handler- Returns:
-
connectionProvider
public DB2Pool connectionProvider(Function<Context,io.smallrye.mutiny.Uni<SqlConnection>> 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 DB2Pool pool(Supplier<io.smallrye.mutiny.Uni<io.vertx.db2client.DB2ConnectOptions>> databases, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
databases
- the databases supplierpoolOptions
- the options for creating the pool- Returns:
- the connection pool
-
pool
public static DB2Pool pool(Vertx vertx, Supplier<io.smallrye.mutiny.Uni<io.vertx.db2client.DB2ConnectOptions>> databases, io.vertx.sqlclient.PoolOptions poolOptions)
- Parameters:
vertx
-databases
-poolOptions
-- Returns:
-
newInstance
public static DB2Pool newInstance(io.vertx.db2client.DB2Pool arg)
-
-