| 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.setEventLoopSize(int eventLoopSize)
Set the number of event-loop the pool use.
|
PoolOptions |
PoolOptions.setIdleTimeout(int idleTimeout)
Establish an idle timeout for pooled connections, a value of zero disables the idle timeout.
|
PoolOptions |
PoolOptions.setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
Establish an idle timeout unit for pooled connections.
|
PoolOptions |
PoolOptions.setMaxLifetime(int maxLifetime)
Establish a max lifetime for pooled connections, a value of zero disables the maximum lifetime.
|
PoolOptions |
PoolOptions.setMaxLifetimeUnit(TimeUnit maxLifetimeUnit)
Establish a max lifetime 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.setName(String name)
Set the pool name, used when the pool shared, otherwise ignored.
|
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.
|
PoolOptions |
PoolOptions.setShared(boolean shared)
Set to
true to share the pool. |
| 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(Vertx vertx,
SqlConnectOptions database,
PoolOptions options)
Create a connection pool to the
database with the given options. |
static void |
PoolOptionsConverter.toJson(PoolOptions obj,
JsonObject json) |
static void |
PoolOptionsConverter.toJson(PoolOptions obj,
Map<String,Object> json) |
| Constructor and Description |
|---|
PoolOptions(PoolOptions other) |
| Modifier and Type | Method and Description |
|---|---|
default Pool |
Driver.createPool(Vertx vertx,
List<? extends SqlConnectOptions> databases,
PoolOptions options)
Create a connection pool to the database configured with the given
connectOptions and poolOptions. |
default Pool |
Driver.createPool(Vertx vertx,
Supplier<? extends Future<? extends SqlConnectOptions>> databases,
PoolOptions options)
Create a connection pool to the database configured with the given
connectOptions and poolOptions. |
default Pool |
Driver.newPool(Vertx vertx,
List<? extends SqlConnectOptions> databases,
PoolOptions options,
io.vertx.core.impl.CloseFuture closeFuture)
Create a connection pool to the database configured with the given
connectOptions and poolOptions. |
Pool |
Driver.newPool(Vertx vertx,
Supplier<? extends Future<? extends SqlConnectOptions>> databases,
PoolOptions options,
io.vertx.core.impl.CloseFuture closeFuture)
Create a connection pool to the database configured with the given
connectOptions and poolOptions. |
Copyright © 2023 Eclipse. All rights reserved.