public interface MySQLPool extends Pool
pool
of MySQL Connections
.Modifier and Type | Method and Description |
---|---|
MySQLPool |
connectHandler(io.vertx.core.Handler<SqlConnection> handler) |
MySQLPool |
connectionProvider(Function<io.vertx.core.Context,io.vertx.core.Future<SqlConnection>> provider) |
static MySQLPool |
pool(List<MySQLConnectOptions> databases,
PoolOptions options)
Create a connection pool to the MySQL
databases with round-robin selection. |
static MySQLPool |
pool(MySQLConnectOptions database,
PoolOptions options)
Create a connection pool to the MySQL
server configured with the given options . |
static MySQLPool |
pool(String connectionUri)
Like
pool(String, PoolOptions) with default options. |
static MySQLPool |
pool(String connectionUri,
PoolOptions options)
|
static MySQLPool |
pool(io.vertx.core.Vertx vertx,
List<MySQLConnectOptions> databases,
PoolOptions options)
Like
pool(List, PoolOptions) with a specific Vertx instance. |
static MySQLPool |
pool(io.vertx.core.Vertx vertx,
MySQLConnectOptions database,
PoolOptions options)
Like
pool(MySQLConnectOptions, PoolOptions) with a specific Vertx instance. |
static MySQLPool |
pool(io.vertx.core.Vertx vertx,
String connectionUri)
Like
pool(Vertx, String, PoolOptions) with default options. |
static MySQLPool |
pool(io.vertx.core.Vertx vertx,
String connectionUri,
PoolOptions options)
|
close, getConnection, getConnection, pool, pool, pool, preparedQuery, query, size, withConnection, withConnection, withTransaction, withTransaction
static MySQLPool pool(String connectionUri)
pool(String, PoolOptions)
with default options.static MySQLPool pool(String connectionUri, PoolOptions options)
static MySQLPool pool(io.vertx.core.Vertx vertx, String connectionUri)
pool(Vertx, String, PoolOptions)
with default options.static MySQLPool pool(io.vertx.core.Vertx vertx, String connectionUri, PoolOptions options)
static MySQLPool pool(MySQLConnectOptions database, PoolOptions options)
server
configured with the given options
.database
- the options for the connectionoptions
- the options for creating the poolstatic MySQLPool pool(io.vertx.core.Vertx vertx, MySQLConnectOptions database, PoolOptions options)
pool(MySQLConnectOptions, PoolOptions)
with a specific Vertx
instance.static MySQLPool pool(List<MySQLConnectOptions> 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 serversoptions
- the options for creating the poolstatic MySQLPool pool(io.vertx.core.Vertx vertx, List<MySQLConnectOptions> databases, PoolOptions options)
pool(List, PoolOptions)
with a specific Vertx
instance.MySQLPool connectHandler(io.vertx.core.Handler<SqlConnection> handler)
connectHandler
in interface Pool
MySQLPool connectionProvider(Function<io.vertx.core.Context,io.vertx.core.Future<SqlConnection>> provider)
connectionProvider
in interface Pool
Copyright © 2022 Eclipse. All rights reserved.