Uses of Class
io.vertx.sqlclient.PoolOptions
-
Packages that use PoolOptions Package Description io.vertx.sqlclient io.vertx.sqlclient.spi -
-
Uses of PoolOptions in io.vertx.sqlclient
Methods in io.vertx.sqlclient that return PoolOptions Modifier and Type Method Description PoolOptionsPoolOptions. setConnectionTimeout(int timeout)Set the amount of time a client will wait for a connection from the pool.PoolOptionsPoolOptions. setConnectionTimeoutUnit(TimeUnit timeoutUnit)Set the time unit ofsetConnectionTimeout(int)PoolOptionsPoolOptions. setEventLoopSize(int eventLoopSize)Set the number of event-loop the pool use.PoolOptionsPoolOptions. setIdleTimeout(int idleTimeout)Establish an idle timeout for pooled connections, a value of zero disables the idle timeout.PoolOptionsPoolOptions. setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)Establish an idle timeout unit for pooled connections.PoolOptionsPoolOptions. setMaxLifetime(int maxLifetime)Establish a max lifetime for pooled connections, a value of zero disables the maximum lifetime.PoolOptionsPoolOptions. setMaxLifetimeUnit(TimeUnit maxLifetimeUnit)Establish a max lifetime unit for pooled connections.PoolOptionsPoolOptions. setMaxSize(int maxSize)Set the maximum pool sizePoolOptionsPoolOptions. setMaxWaitQueueSize(int maxWaitQueueSize)Set the maximum connection request allowed in the wait queue, any requests beyond the max size will result in an failure.PoolOptionsPoolOptions. setName(String name)Set the pool name, used when the pool shared, otherwise ignored.PoolOptionsPoolOptions. 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.PoolOptionsPoolOptions. setShared(boolean shared)Set totrueto share the pool.Methods in io.vertx.sqlclient with parameters of type PoolOptions Modifier and Type Method Description static PoolPool. pool(Vertx vertx, SqlConnectOptions database, PoolOptions options)Create a connection pool to thedatabasewith the givenoptions.static PoolPool. pool(SqlConnectOptions database, PoolOptions options)LikePool.pool(Vertx, SqlConnectOptions, PoolOptions)with a Vert.x instance created automatically.ClientBuilder<C>ClientBuilder. with(PoolOptions options)Configure the client with the given pooloptionsConstructors in io.vertx.sqlclient with parameters of type PoolOptions Constructor Description PoolOptions(PoolOptions other) -
Uses of PoolOptions in io.vertx.sqlclient.spi
Methods in io.vertx.sqlclient.spi with parameters of type PoolOptions Modifier and Type Method Description default PoolDriver. createPool(Vertx vertx, Supplier<Future<C>> databases, PoolOptions poolOptions, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler)Create a connection pool to the database configured with the givenconnectOptionsandpoolOptions.PoolDriver. newPool(Vertx vertx, Supplier<Future<C>> databases, PoolOptions options, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler, io.vertx.core.internal.CloseFuture closeFuture)Create a connection pool to the database configured with the givenconnectOptionsandpoolOptions.
-