Class ConnectionPoolSettings
java.lang.Object
com.kingsrook.qqq.backend.module.rdbms.model.metadata.ConnectionPoolSettings
Settings for a connection pool (if your backend is configured to use one).
Originally based on the most common settings for C3P0 - see
https://www.mchange.com/projects/c3p0/#configuration
If you want more - you'll be looking at defining your own subclass of
C3P0PooledConnectionProvider and possibly this class.
If using a pool other than C3P0 - some of these may apply others may not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for acquireIncrementGetter for checkoutTimeoutSecondsGetter for initialPoolSizeGetter for maxConnectionAgeSecondsGetter for maxIdleTimeExcessConnectionsSecondsGetter for maxIdleTimeSecondsGetter for maxPoolSizeGetter for minPoolSizeGetter for testConnectionOnCheckoutvoid
setAcquireIncrement
(Integer acquireIncrement) Setter for acquireIncrementvoid
setCheckoutTimeoutSeconds
(Integer checkoutTimeoutSeconds) Setter for checkoutTimeoutSecondsvoid
setInitialPoolSize
(Integer initialPoolSize) Setter for initialPoolSizevoid
setMaxConnectionAgeSeconds
(Integer maxConnectionAgeSeconds) Setter for maxConnectionAgeSecondsvoid
setMaxIdleTimeExcessConnectionsSeconds
(Integer maxIdleTimeExcessConnectionsSeconds) Setter for maxIdleTimeExcessConnectionsSecondsvoid
setMaxIdleTimeSeconds
(Integer maxIdleTimeSeconds) Setter for maxIdleTimeSecondsvoid
setMaxPoolSize
(Integer maxPoolSize) Setter for maxPoolSizevoid
setMinPoolSize
(Integer minPoolSize) Setter for minPoolSizevoid
setTestConnectionOnCheckout
(Boolean testConnectionOnCheckout) Setter for testConnectionOnCheckoutwithAcquireIncrement
(Integer acquireIncrement) Fluent setter for acquireIncrementwithCheckoutTimeoutSeconds
(Integer checkoutTimeoutSeconds) Fluent setter for checkoutTimeoutSecondswithInitialPoolSize
(Integer initialPoolSize) Fluent setter for initialPoolSizewithMaxConnectionAgeSeconds
(Integer maxConnectionAgeSeconds) Fluent setter for maxConnectionAgeSecondswithMaxIdleTimeExcessConnectionsSeconds
(Integer maxIdleTimeExcessConnectionsSeconds) Fluent setter for maxIdleTimeExcessConnectionsSecondswithMaxIdleTimeSeconds
(Integer maxIdleTimeSeconds) Fluent setter for maxIdleTimeSecondswithMaxPoolSize
(Integer maxPoolSize) Fluent setter for maxPoolSizewithMinPoolSize
(Integer minPoolSize) Fluent setter for minPoolSizewithTestConnectionOnCheckout
(Boolean testConnectionOnCheckout) Fluent setter for testConnectionOnCheckout
-
Constructor Details
-
ConnectionPoolSettings
public ConnectionPoolSettings()
-
-
Method Details
-
getInitialPoolSize
Getter for initialPoolSize -
setInitialPoolSize
Setter for initialPoolSize -
withInitialPoolSize
Fluent setter for initialPoolSize -
getMinPoolSize
Getter for minPoolSize -
setMinPoolSize
Setter for minPoolSize -
withMinPoolSize
Fluent setter for minPoolSize -
getMaxPoolSize
Getter for maxPoolSize -
setMaxPoolSize
Setter for maxPoolSize -
withMaxPoolSize
Fluent setter for maxPoolSize -
getAcquireIncrement
Getter for acquireIncrement -
setAcquireIncrement
Setter for acquireIncrement -
withAcquireIncrement
Fluent setter for acquireIncrement -
getMaxConnectionAgeSeconds
Getter for maxConnectionAgeSeconds -
setMaxConnectionAgeSeconds
Setter for maxConnectionAgeSeconds -
withMaxConnectionAgeSeconds
Fluent setter for maxConnectionAgeSeconds -
getMaxIdleTimeSeconds
Getter for maxIdleTimeSeconds -
setMaxIdleTimeSeconds
Setter for maxIdleTimeSeconds -
withMaxIdleTimeSeconds
Fluent setter for maxIdleTimeSeconds -
getMaxIdleTimeExcessConnectionsSeconds
Getter for maxIdleTimeExcessConnectionsSeconds -
setMaxIdleTimeExcessConnectionsSeconds
Setter for maxIdleTimeExcessConnectionsSeconds -
withMaxIdleTimeExcessConnectionsSeconds
public ConnectionPoolSettings withMaxIdleTimeExcessConnectionsSeconds(Integer maxIdleTimeExcessConnectionsSeconds) Fluent setter for maxIdleTimeExcessConnectionsSeconds -
getTestConnectionOnCheckout
Getter for testConnectionOnCheckout -
setTestConnectionOnCheckout
Setter for testConnectionOnCheckout -
withTestConnectionOnCheckout
Fluent setter for testConnectionOnCheckout -
getCheckoutTimeoutSeconds
Getter for checkoutTimeoutSeconds -
setCheckoutTimeoutSeconds
Setter for checkoutTimeoutSeconds -
withCheckoutTimeoutSeconds
Fluent setter for checkoutTimeoutSeconds
-