Package | Description |
---|---|
io.vertx.sqlclient | |
io.vertx.sqlclient.spi |
Modifier and Type | Method and Description |
---|---|
PoolOptions |
PoolOptions.setConnectionTimeout(int timeout)
Set the amount of time a client will wait for a connection from the pool.
|
PoolOptions |
PoolOptions.setConnectionTimeoutUnit(TimeUnit timeoutUnit)
Set the time unit of
setConnectionTimeout(int) |
PoolOptions |
PoolOptions.setIdleTimeout(int idleTimeout)
Establish an idle timeout for pooled connections.
|
PoolOptions |
PoolOptions.setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
Establish an idle timeout unit for pooled connections.
|
PoolOptions |
PoolOptions.setMaxSize(int maxSize)
Set the maximum pool size
|
PoolOptions |
PoolOptions.setMaxWaitQueueSize(int maxWaitQueueSize)
Set the maximum connection request allowed in the wait queue, any requests beyond the max size will result in
an failure.
|
PoolOptions |
PoolOptions.setPoolCleanerPeriod(int poolCleanerPeriod)
Set the connection pool cleaner period in milli seconds, a non positive value disables expiration checks and connections
will remain in the pool until they are closed.
|
Modifier and Type | Method and Description |
---|---|
static void |
PoolOptionsConverter.fromJson(Iterable<Map.Entry<String,Object>> json,
PoolOptions obj) |
static Pool |
Pool.pool(SqlConnectOptions database,
PoolOptions options)
Like
Pool.pool(Vertx, SqlConnectOptions, PoolOptions) with a Vert.x instance created automatically. |
static Pool |
Pool.pool(io.vertx.core.Vertx vertx,
SqlConnectOptions database,
PoolOptions options)
Create a connection pool to the
database with the given options . |
static void |
PoolOptionsConverter.toJson(PoolOptions obj,
io.vertx.core.json.JsonObject json) |
static void |
PoolOptionsConverter.toJson(PoolOptions obj,
Map<String,Object> json) |
Constructor and Description |
---|
PoolOptions(PoolOptions other) |
Modifier and Type | Method and Description |
---|---|
Pool |
Driver.createPool(io.vertx.core.Vertx vertx,
List<? extends SqlConnectOptions> databases,
PoolOptions options)
Create a connection pool to the database configured with the given
connectOptions and poolOptions . |
Copyright © 2021 Eclipse. All rights reserved.