public interface MSSQLPool extends Pool
pool of SQL Server connections.| Modifier and Type | Method and Description |
|---|---|
MSSQLPool |
connectHandler(Handler<SqlConnection> handler) |
MSSQLPool |
connectionProvider(Function<Context,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(Vertx vertx,
List<MSSQLConnectOptions> databases,
PoolOptions options)
Like
pool(List, PoolOptions) with a specific Vertx instance. |
static MSSQLPool |
pool(Vertx vertx,
MSSQLConnectOptions database,
PoolOptions options)
Like
pool(MSSQLConnectOptions, PoolOptions) with a specific Vertx instance. |
static MSSQLPool |
pool(Vertx vertx,
String connectionUri)
Like
pool(Vertx, String, PoolOptions) with default options. |
static MSSQLPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions options)
|
close, getConnection, getConnection, pool, pool, pool, preparedQuery, query, size, withConnection, withConnection, withTransaction, withTransactionclose, preparedQuerystatic MSSQLPool pool(String connectionUri)
pool(String, PoolOptions) with default options.static MSSQLPool pool(String connectionUri, PoolOptions options)
static MSSQLPool pool(Vertx vertx, String connectionUri)
pool(Vertx, String, PoolOptions) with default options.static MSSQLPool pool(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(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(Vertx vertx, List<MSSQLConnectOptions> databases, PoolOptions options)
pool(List, PoolOptions) with a specific Vertx instance.MSSQLPool connectHandler(Handler<SqlConnection> handler)
connectHandler in interface PoolMSSQLPool connectionProvider(Function<Context,Future<SqlConnection>> provider)
connectionProvider in interface PoolCopyright © 2022 Eclipse. All rights reserved.