Package org.ofbiz.core.entity.config
Class ConnectionPoolInfo.Builder
java.lang.Object
org.ofbiz.core.entity.config.ConnectionPoolInfo.Builder
- Enclosing class:
- ConnectionPoolInfo
This is a builder class for constructing a
ConnectionPoolInfo manually.
Use the ConnectionPoolInfo.builder() factory to obtain an instance
of this class and call the various setXyzzy methods to
populate the fields. Those that are left unset or are explicitly
set to null will use default values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newConnectionPoolInfoas specified by the current state of this builder.booleaninthashCode()setDeadLockMaxWait(Long deadLockMaxWait) setDeadLockRetryWait(Long deadLockRetryWait) setDefaultCatalog(String defaultCatalog) setMaxOpenPreparedStatements(Integer maxOpenPreparedStatements) setMinEvictableTimeMillis(Long minEvictableTimeMillis) setNumTestsPerEvictionRun(Integer numTestsPerEvictionRun) setPoolInitialSize(Integer poolInitialSize) setPoolLifeTime(Long poolLifeTime) setPoolMaxIdle(Integer poolMaxIdle) setPoolMaxSize(Integer poolMaxSize) setPoolMaxWait(Long poolMaxWait) setPoolMinSize(Integer poolMinSize) setPoolPreparedStatements(Boolean poolPreparedStatements) setPoolSleepTime(Long poolSleepTime) setRemoveAbandonedOnBorrow(Boolean removeAbandonedOnBorrow) setRemoveAbandonedOnMaintenance(Boolean removeAbandonedOnMaintenance) setRemoveAbandonedTimeout(Integer removeAbandonedTimeout) setTestOnBorrow(Boolean testOnBorrow) setTestOnReturn(Boolean testOnReturn) setTestWhileIdle(Boolean testWhileIdle) setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis) setValidationQuery(String validationQuery) setValidationQueryTimeout(Integer validationQueryTimeout)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Returns a newConnectionPoolInfoas specified by the current state of this builder.- Returns:
- the new
ConnectionPoolInfo - Throws:
IllegalArgumentException- if the configuration is invalid
-
getValidationQuery
-
setValidationQuery
-
getMinEvictableTimeMillis
-
setMinEvictableTimeMillis
-
getTimeBetweenEvictionRunsMillis
-
setTimeBetweenEvictionRunsMillis
public ConnectionPoolInfo.Builder setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis) -
getPoolMaxWait
-
setPoolMaxWait
-
getPoolMinSize
-
setPoolMinSize
-
getPoolMaxSize
-
setPoolMaxSize
-
getPoolMaxIdle
-
setPoolMaxIdle
-
getPoolInitialSize
-
setPoolInitialSize
-
getPoolPreparedStatements
-
setPoolPreparedStatements
-
getRemoveAbandonedOnBorrow
-
setRemoveAbandonedOnBorrow
-
getRemoveAbandonedOnMaintenance
-
setRemoveAbandonedOnMaintenance
public ConnectionPoolInfo.Builder setRemoveAbandonedOnMaintenance(Boolean removeAbandonedOnMaintenance) -
getTestOnBorrow
-
setTestOnBorrow
-
getTestOnReturn
-
setTestOnReturn
-
getTestWhileIdle
-
setTestWhileIdle
-
getMaxOpenPreparedStatements
-
setMaxOpenPreparedStatements
-
getNumTestsPerEvictionRun
-
setNumTestsPerEvictionRun
-
getRemoveAbandonedTimeout
-
setRemoveAbandonedTimeout
-
getValidationQueryTimeout
-
setValidationQueryTimeout
-
getDefaultCatalog
-
setDefaultCatalog
-
getPoolSleepTime
-
setPoolSleepTime
-
getPoolLifeTime
-
setPoolLifeTime
-
getDeadLockMaxWait
-
setDeadLockMaxWait
-
getDeadLockRetryWait
-
setDeadLockRetryWait
-
equals
-
hashCode
public int hashCode()
-