public interface MSSQLPool extends Pool
pool
of SQL Server connections
.Modifier and Type | Method and Description |
---|---|
MSSQLPool |
connectHandler(io.vertx.core.Handler<SqlConnection> handler) |
MSSQLPool |
connectionProvider(Function<io.vertx.core.Context,io.vertx.core.Future<SqlConnection>> provider) |
static MSSQLPool |
pool(List<MSSQLConnectOptions> databases,
PoolOptions options)
Create a connection pool to the SQL Server
databases with round-robin selection. |
static MSSQLPool |
pool(MSSQLConnectOptions database,
PoolOptions options)
Create a connection pool to the SQL server
database configured with the given options . |
static MSSQLPool |
pool(String connectionUri)
Like
pool(String, PoolOptions) with default options. |
static MSSQLPool |
pool(String connectionUri,
PoolOptions options)
|
static MSSQLPool |
pool(io.vertx.core.Vertx vertx,
List<MSSQLConnectOptions> databases,
PoolOptions options)
Like
pool(List, PoolOptions) with a specific Vertx instance. |
static MSSQLPool |
pool(io.vertx.core.Vertx vertx,
MSSQLConnectOptions database,
PoolOptions options)
Like
pool(MSSQLConnectOptions, PoolOptions) with a specific Vertx instance. |
static MSSQLPool |
pool(io.vertx.core.Vertx vertx,
String connectionUri)
Like
pool(Vertx, String, PoolOptions) with default options. |
static MSSQLPool |
pool(io.vertx.core.Vertx vertx,
String connectionUri,
PoolOptions options)
|
close, getConnection, getConnection, pool, pool, pool, preparedQuery, query, size, withConnection, withConnection, withTransaction, withTransaction
static MSSQLPool pool(String connectionUri)
pool(String, PoolOptions)
with default options.static MSSQLPool pool(String connectionUri, PoolOptions options)
static MSSQLPool pool(io.vertx.core.Vertx vertx, String connectionUri)
pool(Vertx, String, PoolOptions)
with default options.static MSSQLPool pool(io.vertx.core.Vertx vertx, String connectionUri, PoolOptions options)
static MSSQLPool pool(MSSQLConnectOptions database, PoolOptions options)
database
configured with the given options
.database
- the options for the connectionoptions
- the options for creating the poolstatic MSSQLPool pool(io.vertx.core.Vertx vertx, MSSQLConnectOptions database, PoolOptions options)
pool(MSSQLConnectOptions, PoolOptions)
with a specific Vertx
instance.static MSSQLPool pool(List<MSSQLConnectOptions> databases, PoolOptions options)
databases
with round-robin selection.
Round-robin is applied when a new connection is created by the pool.databases
- the list of databasesoptions
- the options for creating the poolstatic MSSQLPool pool(io.vertx.core.Vertx vertx, List<MSSQLConnectOptions> databases, PoolOptions options)
pool(List, PoolOptions)
with a specific Vertx
instance.MSSQLPool connectHandler(io.vertx.core.Handler<SqlConnection> handler)
connectHandler
in interface Pool
MSSQLPool connectionProvider(Function<io.vertx.core.Context,io.vertx.core.Future<SqlConnection>> provider)
connectionProvider
in interface Pool
Copyright © 2021 Eclipse. All rights reserved.