public static class ConnectionPoolInfo.Builder extends Object
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 and Description |
|---|
Builder() |
public ConnectionPoolInfo build()
IllegalArgumentException - if the configuration is invalidpublic String getValidationQuery()
public ConnectionPoolInfo.Builder setValidationQuery(String validationQuery)
public Long getMinEvictableTimeMillis()
public ConnectionPoolInfo.Builder setMinEvictableTimeMillis(Long minEvictableTimeMillis)
public Long getTimeBetweenEvictionRunsMillis()
public ConnectionPoolInfo.Builder setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis)
public Long getPoolMaxWait()
public ConnectionPoolInfo.Builder setPoolMaxWait(Long poolMaxWait)
public Integer getPoolMinSize()
public ConnectionPoolInfo.Builder setPoolMinSize(Integer poolMinSize)
public Integer getPoolMaxSize()
public ConnectionPoolInfo.Builder setPoolMaxSize(Integer poolMaxSize)
public Integer getPoolMaxIdle()
public ConnectionPoolInfo.Builder setPoolMaxIdle(Integer poolMaxIdle)
public Integer getPoolInitialSize()
public ConnectionPoolInfo.Builder setPoolInitialSize(Integer poolInitialSize)
public Boolean getPoolPreparedStatements()
public ConnectionPoolInfo.Builder setPoolPreparedStatements(Boolean poolPreparedStatements)
public Boolean getRemoveAbandonedOnBorrow()
public ConnectionPoolInfo.Builder setRemoveAbandonedOnBorrow(Boolean removeAbandonedOnBorrow)
public Boolean getRemoveAbandonedOnMaintenance()
public ConnectionPoolInfo.Builder setRemoveAbandonedOnMaintenance(Boolean removeAbandonedOnMaintenance)
public Boolean getTestOnBorrow()
public ConnectionPoolInfo.Builder setTestOnBorrow(Boolean testOnBorrow)
public Boolean getTestOnReturn()
public ConnectionPoolInfo.Builder setTestOnReturn(Boolean testOnReturn)
public Boolean getTestWhileIdle()
public ConnectionPoolInfo.Builder setTestWhileIdle(Boolean testWhileIdle)
public Integer getMaxOpenPreparedStatements()
public ConnectionPoolInfo.Builder setMaxOpenPreparedStatements(Integer maxOpenPreparedStatements)
public Integer getNumTestsPerEvictionRun()
public ConnectionPoolInfo.Builder setNumTestsPerEvictionRun(Integer numTestsPerEvictionRun)
public Integer getRemoveAbandonedTimeout()
public ConnectionPoolInfo.Builder setRemoveAbandonedTimeout(Integer removeAbandonedTimeout)
public Integer getValidationQueryTimeout()
public ConnectionPoolInfo.Builder setValidationQueryTimeout(Integer validationQueryTimeout)
public String getDefaultCatalog()
public ConnectionPoolInfo.Builder setDefaultCatalog(String defaultCatalog)
public Long getPoolSleepTime()
public ConnectionPoolInfo.Builder setPoolSleepTime(Long poolSleepTime)
public Long getPoolLifeTime()
public ConnectionPoolInfo.Builder setPoolLifeTime(Long poolLifeTime)
public Long getDeadLockMaxWait()
public ConnectionPoolInfo.Builder setDeadLockMaxWait(Long deadLockMaxWait)
public Long getDeadLockRetryWait()
public ConnectionPoolInfo.Builder setDeadLockRetryWait(Long deadLockRetryWait)
Copyright © 2024 Atlassian. All rights reserved.