Class BaseObjectPoolConfig<T>
- java.lang.Object
- 
- org.apache.tomcat.dbcp.pool2.BaseObject
- 
- org.apache.tomcat.dbcp.pool2.impl.BaseObjectPoolConfig<T>
 
 
- 
- Type Parameters:
- T- Type of element pooled.
 - All Implemented Interfaces:
- java.lang.Cloneable
 - Direct Known Subclasses:
- GenericKeyedObjectPoolConfig,- GenericObjectPoolConfig
 
 public abstract class BaseObjectPoolConfig<T> extends BaseObject implements java.lang.Cloneable Provides the implementation for the common attributes shared by the sub-classes. New instances of this class will be created using the defaults defined by the public constants.This class is not thread-safe. - Since:
- 2.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_BLOCK_WHEN_EXHAUSTEDThe default value for theblockWhenExhaustedconfiguration attribute.static java.lang.StringDEFAULT_EVICTION_POLICY_CLASS_NAMEThe default value for theevictionPolicyClassNameconfiguration attribute.static java.time.DurationDEFAULT_EVICTOR_SHUTDOWN_TIMEOUTThe default value forevictorShutdownTimeoutconfiguration attribute.static longDEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLISDeprecated.static booleanDEFAULT_FAIRNESSThe default value for thefairnessconfiguration attribute.static booleanDEFAULT_JMX_ENABLEThe default value for enabling JMX for pools created with a configuration instance.static java.lang.StringDEFAULT_JMX_NAME_BASEThe default value for the base name to use to name JMX enabled pools created with a configuration instance.static java.lang.StringDEFAULT_JMX_NAME_PREFIXThe default value for the prefix used to name JMX enabled pools created with a configuration instance.static booleanDEFAULT_LIFOThe default value for thelifoconfiguration attribute.static java.time.DurationDEFAULT_MAX_WAITThe default value for themaxWaitconfiguration attribute.static longDEFAULT_MAX_WAIT_MILLISDeprecated.UseDEFAULT_MAX_WAIT.static java.time.DurationDEFAULT_MIN_EVICTABLE_IDLE_DURATIONThe default value for theminEvictableIdleDurationconfiguration attribute.static java.time.DurationDEFAULT_MIN_EVICTABLE_IDLE_TIMEDeprecated.static longDEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLISDeprecated.static intDEFAULT_NUM_TESTS_PER_EVICTION_RUNThe default value for thenumTestsPerEvictionRunconfiguration attribute.static java.time.DurationDEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATIONThe default value for thesoftMinEvictableIdleTimeconfiguration attribute.static java.time.DurationDEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIMEDeprecated.static longDEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLISDeprecated.static booleanDEFAULT_TEST_ON_BORROWThe default value for thetestOnBorrowconfiguration attribute.static booleanDEFAULT_TEST_ON_CREATEThe default value for thetestOnCreateconfiguration attribute.static booleanDEFAULT_TEST_ON_RETURNThe default value for thetestOnReturnconfiguration attribute.static booleanDEFAULT_TEST_WHILE_IDLEThe default value for thetestWhileIdleconfiguration attribute.static java.time.DurationDEFAULT_TIME_BETWEEN_EVICTION_RUNSThe default value for thetimeBetweenEvictionRunsconfiguration attribute.static longDEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLISDeprecated.
 - 
Constructor SummaryConstructors Constructor Description BaseObjectPoolConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleangetBlockWhenExhausted()Gets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.java.time.DurationgetDurationBetweenEvictionRuns()Gets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.EvictionPolicy<T>getEvictionPolicy()Gets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.java.lang.StringgetEvictionPolicyClassName()Gets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.java.time.DurationgetEvictorShutdownTimeout()Deprecated.java.time.DurationgetEvictorShutdownTimeoutDuration()Gets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.longgetEvictorShutdownTimeoutMillis()Deprecated.booleangetFairness()Gets the value for thefairnessconfiguration attribute for pools created with this configuration instance.booleangetJmxEnabled()Gets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.java.lang.StringgetJmxNameBase()Gets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.java.lang.StringgetJmxNamePrefix()Gets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.booleangetLifo()Gets the value for thelifoconfiguration attribute for pools created with this configuration instance.java.time.DurationgetMaxWaitDuration()Gets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.longgetMaxWaitMillis()Deprecated.UsegetMaxWaitDuration().java.time.DurationgetMinEvictableIdleDuration()Gets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.java.time.DurationgetMinEvictableIdleTime()Deprecated.longgetMinEvictableIdleTimeMillis()Deprecated.intgetNumTestsPerEvictionRun()Gets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.java.time.DurationgetSoftMinEvictableIdleDuration()Gets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.java.time.DurationgetSoftMinEvictableIdleTime()Deprecated.longgetSoftMinEvictableIdleTimeMillis()Deprecated.booleangetTestOnBorrow()Gets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.booleangetTestOnCreate()Gets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.booleangetTestOnReturn()Gets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.booleangetTestWhileIdle()Gets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.java.time.DurationgetTimeBetweenEvictionRuns()Deprecated.longgetTimeBetweenEvictionRunsMillis()Deprecated.voidsetBlockWhenExhausted(boolean blockWhenExhausted)Sets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.voidsetEvictionPolicy(EvictionPolicy<T> evictionPolicy)Sets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.voidsetEvictionPolicyClassName(java.lang.String evictionPolicyClassName)Sets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.voidsetEvictorShutdownTimeout(java.time.Duration evictorShutdownTimeoutDuration)Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.voidsetEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis)Deprecated.voidsetEvictorShutdownTimeoutMillis(java.time.Duration evictorShutdownTimeout)Deprecated.voidsetFairness(boolean fairness)Sets the value for thefairnessconfiguration attribute for pools created with this configuration instance.voidsetJmxEnabled(boolean jmxEnabled)Sets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.voidsetJmxNameBase(java.lang.String jmxNameBase)Sets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.voidsetJmxNamePrefix(java.lang.String jmxNamePrefix)Sets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.voidsetLifo(boolean lifo)Sets the value for thelifoconfiguration attribute for pools created with this configuration instance.voidsetMaxWait(java.time.Duration maxWaitDuration)Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.voidsetMaxWaitMillis(long maxWaitMillis)Deprecated.UsesetMaxWait(Duration).voidsetMinEvictableIdleTime(java.time.Duration minEvictableIdleTime)Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.voidsetMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)Deprecated.voidsetNumTestsPerEvictionRun(int numTestsPerEvictionRun)Sets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.voidsetSoftMinEvictableIdleTime(java.time.Duration softMinEvictableIdleTime)Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.voidsetSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)Deprecated.voidsetTestOnBorrow(boolean testOnBorrow)Sets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.voidsetTestOnCreate(boolean testOnCreate)Sets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.voidsetTestOnReturn(boolean testOnReturn)Sets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.voidsetTestWhileIdle(boolean testWhileIdle)Sets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.voidsetTimeBetweenEvictionRuns(java.time.Duration timeBetweenEvictionRuns)Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.voidsetTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)Deprecated.protected voidtoStringAppendFields(java.lang.StringBuilder builder)Used by sub-classes to include the fields defined by the sub-class in theBaseObject.toString()output.- 
Methods inherited from class org.apache.tomcat.dbcp.pool2.BaseObjecttoString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_LIFOpublic static final boolean DEFAULT_LIFO The default value for thelifoconfiguration attribute.
 - 
DEFAULT_FAIRNESSpublic static final boolean DEFAULT_FAIRNESS The default value for thefairnessconfiguration attribute.
 - 
DEFAULT_MAX_WAIT_MILLIS@Deprecated public static final long DEFAULT_MAX_WAIT_MILLIS Deprecated.UseDEFAULT_MAX_WAIT.The default value for themaxWaitconfiguration attribute.
 - 
DEFAULT_MAX_WAITpublic static final java.time.Duration DEFAULT_MAX_WAIT The default value for themaxWaitconfiguration attribute.- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getMaxWaitDuration(),- BaseGenericObjectPool.getMaxWaitDuration()
 
 - 
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS@Deprecated public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS Deprecated.The default value for theminEvictableIdleDurationconfiguration attribute.
 - 
DEFAULT_MIN_EVICTABLE_IDLE_DURATIONpublic static final java.time.Duration DEFAULT_MIN_EVICTABLE_IDLE_DURATION The default value for theminEvictableIdleDurationconfiguration attribute.- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
DEFAULT_MIN_EVICTABLE_IDLE_TIME@Deprecated public static final java.time.Duration DEFAULT_MIN_EVICTABLE_IDLE_TIME Deprecated.The default value for theminEvictableIdleDurationconfiguration attribute.- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS@Deprecated public static final long DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS Deprecated.The default value for thesoftMinEvictableIdleTimeconfiguration attribute.
 - 
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME@Deprecated public static final java.time.Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME Deprecated.The default value for thesoftMinEvictableIdleTimeconfiguration attribute.
 - 
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATIONpublic static final java.time.Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION The default value for thesoftMinEvictableIdleTimeconfiguration attribute.
 - 
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS@Deprecated public static final long DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS Deprecated.The default value forevictorShutdownTimeoutconfiguration attribute.
 - 
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUTpublic static final java.time.Duration DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT The default value forevictorShutdownTimeoutconfiguration attribute.
 - 
DEFAULT_NUM_TESTS_PER_EVICTION_RUNpublic static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN The default value for thenumTestsPerEvictionRunconfiguration attribute.
 - 
DEFAULT_TEST_ON_CREATEpublic static final boolean DEFAULT_TEST_ON_CREATE The default value for thetestOnCreateconfiguration attribute.- Since:
- 2.2
- See Also:
- BaseGenericObjectPool.getTestOnCreate(),- BaseGenericObjectPool.getTestOnCreate(), Constant Field Values
 
 - 
DEFAULT_TEST_ON_BORROWpublic static final boolean DEFAULT_TEST_ON_BORROW The default value for thetestOnBorrowconfiguration attribute.
 - 
DEFAULT_TEST_ON_RETURNpublic static final boolean DEFAULT_TEST_ON_RETURN The default value for thetestOnReturnconfiguration attribute.
 - 
DEFAULT_TEST_WHILE_IDLEpublic static final boolean DEFAULT_TEST_WHILE_IDLE The default value for thetestWhileIdleconfiguration attribute.
 - 
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS@Deprecated public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS Deprecated.The default value for thetimeBetweenEvictionRunsconfiguration attribute.
 - 
DEFAULT_TIME_BETWEEN_EVICTION_RUNSpublic static final java.time.Duration DEFAULT_TIME_BETWEEN_EVICTION_RUNS The default value for thetimeBetweenEvictionRunsconfiguration attribute.
 - 
DEFAULT_BLOCK_WHEN_EXHAUSTEDpublic static final boolean DEFAULT_BLOCK_WHEN_EXHAUSTED The default value for theblockWhenExhaustedconfiguration attribute.
 - 
DEFAULT_JMX_ENABLEpublic static final boolean DEFAULT_JMX_ENABLE The default value for enabling JMX for pools created with a configuration instance.- See Also:
- Constant Field Values
 
 - 
DEFAULT_JMX_NAME_PREFIXpublic static final java.lang.String DEFAULT_JMX_NAME_PREFIX The default value for the prefix used to name JMX enabled pools created with a configuration instance.
 - 
DEFAULT_JMX_NAME_BASEpublic static final java.lang.String DEFAULT_JMX_NAME_BASE The default value for the base name to use to name JMX enabled pools created with a configuration instance. The default isnullwhich means the pool will provide the base name to use.
 - 
DEFAULT_EVICTION_POLICY_CLASS_NAMEpublic static final java.lang.String DEFAULT_EVICTION_POLICY_CLASS_NAME The default value for theevictionPolicyClassNameconfiguration attribute.
 
- 
 - 
Method Detail- 
getBlockWhenExhaustedpublic boolean getBlockWhenExhausted() Gets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of blockWhenExhaustedfor this configuration instance
- See Also:
- BaseGenericObjectPool.getBlockWhenExhausted(),- BaseGenericObjectPool.getBlockWhenExhausted()
 
 - 
getDurationBetweenEvictionRunspublic java.time.Duration getDurationBetweenEvictionRuns() Gets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of timeBetweenEvictionRunsfor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getDurationBetweenEvictionRuns(),- BaseGenericObjectPool.getDurationBetweenEvictionRuns()
 
 - 
getEvictionPolicypublic EvictionPolicy<T> getEvictionPolicy() Gets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of evictionPolicyClassfor this configuration instance
- Since:
- 2.6.0
- See Also:
- BaseGenericObjectPool.getEvictionPolicy(),- BaseGenericObjectPool.getEvictionPolicy()
 
 - 
getEvictionPolicyClassNamepublic java.lang.String getEvictionPolicyClassName() Gets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of evictionPolicyClassNamefor this configuration instance
- See Also:
- BaseGenericObjectPool.getEvictionPolicyClassName(),- BaseGenericObjectPool.getEvictionPolicyClassName()
 
 - 
getEvictorShutdownTimeout@Deprecated public java.time.Duration getEvictorShutdownTimeout() Deprecated.Gets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of evictorShutdownTimeoutfor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
getEvictorShutdownTimeoutDurationpublic java.time.Duration getEvictorShutdownTimeoutDuration() Gets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of evictorShutdownTimeoutfor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
getEvictorShutdownTimeoutMillis@Deprecated public long getEvictorShutdownTimeoutMillis() Deprecated.Gets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of evictorShutdownTimeoutfor this configuration instance
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
getFairnesspublic boolean getFairness() Gets the value for thefairnessconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of fairnessfor this configuration instance
- See Also:
- BaseGenericObjectPool.getFairness(),- BaseGenericObjectPool.getFairness()
 
 - 
getJmxEnabledpublic boolean getJmxEnabled() Gets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.- Returns:
- The current setting of jmxEnabledfor this configuration instance
 
 - 
getJmxNameBasepublic java.lang.String getJmxNameBase() Gets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance. A value ofnullmeans that the pool will define the JMX name base.- Returns:
- The current setting of jmxNameBasefor this configuration instance
 
 - 
getJmxNamePrefixpublic java.lang.String getJmxNamePrefix() Gets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.- Returns:
- The current setting of jmxNamePrefixfor this configuration instance
 
 - 
getLifopublic boolean getLifo() Gets the value for thelifoconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of lifofor this configuration instance
- See Also:
- BaseGenericObjectPool.getLifo(),- BaseGenericObjectPool.getLifo()
 
 - 
getMaxWaitDurationpublic java.time.Duration getMaxWaitDuration() Gets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of maxWaitfor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getMaxWaitDuration(),- BaseGenericObjectPool.getMaxWaitDuration()
 
 - 
getMaxWaitMillis@Deprecated public long getMaxWaitMillis() Deprecated.UsegetMaxWaitDuration().Gets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of maxWaitfor this configuration instance
- See Also:
- BaseGenericObjectPool.getMaxWaitDuration(),- BaseGenericObjectPool.getMaxWaitDuration()
 
 - 
getMinEvictableIdleDurationpublic java.time.Duration getMinEvictableIdleDuration() Gets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of minEvictableIdleTimefor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
getMinEvictableIdleTime@Deprecated public java.time.Duration getMinEvictableIdleTime() Deprecated.Gets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of minEvictableIdleTimefor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
getMinEvictableIdleTimeMillis@Deprecated public long getMinEvictableIdleTimeMillis() Deprecated.Gets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of minEvictableIdleTimefor this configuration instance
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
getNumTestsPerEvictionRunpublic int getNumTestsPerEvictionRun() Gets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of numTestsPerEvictionRunfor this configuration instance
- See Also:
- BaseGenericObjectPool.getNumTestsPerEvictionRun(),- BaseGenericObjectPool.getNumTestsPerEvictionRun()
 
 - 
getSoftMinEvictableIdleDurationpublic java.time.Duration getSoftMinEvictableIdleDuration() Gets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of softMinEvictableIdleTimefor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getSoftMinEvictableIdleDuration(),- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
 
 - 
getSoftMinEvictableIdleTime@Deprecated public java.time.Duration getSoftMinEvictableIdleTime() Deprecated.Gets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of softMinEvictableIdleTimefor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getSoftMinEvictableIdleDuration(),- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
 
 - 
getSoftMinEvictableIdleTimeMillis@Deprecated public long getSoftMinEvictableIdleTimeMillis() Deprecated.Gets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of softMinEvictableIdleTimefor this configuration instance
- See Also:
- BaseGenericObjectPool.getSoftMinEvictableIdleDuration(),- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
 
 - 
getTestOnBorrowpublic boolean getTestOnBorrow() Gets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of testOnBorrowfor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestOnBorrow(),- BaseGenericObjectPool.getTestOnBorrow()
 
 - 
getTestOnCreatepublic boolean getTestOnCreate() Gets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of testOnCreatefor this configuration instance
- Since:
- 2.2
- See Also:
- BaseGenericObjectPool.getTestOnCreate(),- BaseGenericObjectPool.getTestOnCreate()
 
 - 
getTestOnReturnpublic boolean getTestOnReturn() Gets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of testOnReturnfor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestOnReturn(),- BaseGenericObjectPool.getTestOnReturn()
 
 - 
getTestWhileIdlepublic boolean getTestWhileIdle() Gets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of testWhileIdlefor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestWhileIdle(),- BaseGenericObjectPool.getTestWhileIdle()
 
 - 
getTimeBetweenEvictionRuns@Deprecated public java.time.Duration getTimeBetweenEvictionRuns() Deprecated.Gets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of timeBetweenEvictionRunsfor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getDurationBetweenEvictionRuns(),- BaseGenericObjectPool.getDurationBetweenEvictionRuns()
 
 - 
getTimeBetweenEvictionRunsMillis@Deprecated public long getTimeBetweenEvictionRunsMillis() Deprecated.Gets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Returns:
- The current setting of timeBetweenEvictionRunsfor this configuration instance
- See Also:
- BaseGenericObjectPool.getDurationBetweenEvictionRuns(),- BaseGenericObjectPool.getDurationBetweenEvictionRuns()
 
 - 
setBlockWhenExhaustedpublic void setBlockWhenExhausted(boolean blockWhenExhausted) Sets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.- Parameters:
- blockWhenExhausted- The new setting of- blockWhenExhaustedfor this configuration instance
- See Also:
- BaseGenericObjectPool.getBlockWhenExhausted(),- BaseGenericObjectPool.getBlockWhenExhausted()
 
 - 
setEvictionPolicypublic void setEvictionPolicy(EvictionPolicy<T> evictionPolicy) Sets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.- Parameters:
- evictionPolicy- The new setting of- evictionPolicyClassfor this configuration instance
- Since:
- 2.6.0
- See Also:
- BaseGenericObjectPool.getEvictionPolicy(),- BaseGenericObjectPool.getEvictionPolicy()
 
 - 
setEvictionPolicyClassNamepublic void setEvictionPolicyClassName(java.lang.String evictionPolicyClassName) Sets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.- Parameters:
- evictionPolicyClassName- The new setting of- evictionPolicyClassNamefor this configuration instance
- See Also:
- BaseGenericObjectPool.getEvictionPolicyClassName(),- BaseGenericObjectPool.getEvictionPolicyClassName()
 
 - 
setEvictorShutdownTimeoutpublic void setEvictorShutdownTimeout(java.time.Duration evictorShutdownTimeoutDuration) Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
- evictorShutdownTimeoutDuration- The new setting of- evictorShutdownTimeoutfor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
setEvictorShutdownTimeoutMillis@Deprecated public void setEvictorShutdownTimeoutMillis(java.time.Duration evictorShutdownTimeout) Deprecated.Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
- evictorShutdownTimeout- The new setting of- evictorShutdownTimeoutfor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
setEvictorShutdownTimeoutMillis@Deprecated public void setEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis) Deprecated.Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
- evictorShutdownTimeoutMillis- The new setting of- evictorShutdownTimeoutfor this configuration instance
- See Also:
- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),- BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()
 
 - 
setFairnesspublic void setFairness(boolean fairness) Sets the value for thefairnessconfiguration attribute for pools created with this configuration instance.- Parameters:
- fairness- The new setting of- fairnessfor this configuration instance
- See Also:
- BaseGenericObjectPool.getFairness(),- BaseGenericObjectPool.getFairness()
 
 - 
setJmxEnabledpublic void setJmxEnabled(boolean jmxEnabled) Sets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.- Parameters:
- jmxEnabled- The new setting of- jmxEnabledfor this configuration instance
 
 - 
setJmxNameBasepublic void setJmxNameBase(java.lang.String jmxNameBase) Sets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance. A value ofnullmeans that the pool will define the JMX name base.- Parameters:
- jmxNameBase- The new setting of- jmxNameBasefor this configuration instance
 
 - 
setJmxNamePrefixpublic void setJmxNamePrefix(java.lang.String jmxNamePrefix) Sets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.- Parameters:
- jmxNamePrefix- The new setting of- jmxNamePrefixfor this configuration instance
 
 - 
setLifopublic void setLifo(boolean lifo) Sets the value for thelifoconfiguration attribute for pools created with this configuration instance.- Parameters:
- lifo- The new setting of- lifofor this configuration instance
- See Also:
- BaseGenericObjectPool.getLifo(),- BaseGenericObjectPool.getLifo()
 
 - 
setMaxWaitpublic void setMaxWait(java.time.Duration maxWaitDuration) Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Parameters:
- maxWaitDuration- The new setting of- maxWaitDurationfor this configuration instance
- Since:
- 2.11.0
- See Also:
- BaseGenericObjectPool.getMaxWaitDuration(),- BaseGenericObjectPool.getMaxWaitDuration()
 
 - 
setMaxWaitMillis@Deprecated public void setMaxWaitMillis(long maxWaitMillis) Deprecated.UsesetMaxWait(Duration).Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Parameters:
- maxWaitMillis- The new setting of- maxWaitMillisfor this configuration instance
- See Also:
- BaseGenericObjectPool.getMaxWaitDuration(),- BaseGenericObjectPool.getMaxWaitDuration()
 
 - 
setMinEvictableIdleTimepublic void setMinEvictableIdleTime(java.time.Duration minEvictableIdleTime) Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
- minEvictableIdleTime- The new setting of- minEvictableIdleTimefor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
setMinEvictableIdleTimeMillis@Deprecated public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) Deprecated.Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
- minEvictableIdleTimeMillis- The new setting of- minEvictableIdleTimefor this configuration instance
- See Also:
- BaseGenericObjectPool.getMinEvictableIdleDuration(),- BaseGenericObjectPool.getMinEvictableIdleDuration()
 
 - 
setNumTestsPerEvictionRunpublic void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.- Parameters:
- numTestsPerEvictionRun- The new setting of- numTestsPerEvictionRunfor this configuration instance
- See Also:
- BaseGenericObjectPool.getNumTestsPerEvictionRun(),- BaseGenericObjectPool.getNumTestsPerEvictionRun()
 
 - 
setSoftMinEvictableIdleTimepublic void setSoftMinEvictableIdleTime(java.time.Duration softMinEvictableIdleTime) Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
- softMinEvictableIdleTime- The new setting of- softMinEvictableIdleTimefor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getSoftMinEvictableIdleDuration(),- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
 
 - 
setSoftMinEvictableIdleTimeMillis@Deprecated public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis) Deprecated.Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
- softMinEvictableIdleTimeMillis- The new setting of- softMinEvictableIdleTimefor this configuration instance
- See Also:
- BaseGenericObjectPool.getSoftMinEvictableIdleDuration(),- BaseGenericObjectPool.getSoftMinEvictableIdleDuration()
 
 - 
setTestOnBorrowpublic void setTestOnBorrow(boolean testOnBorrow) Sets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.- Parameters:
- testOnBorrow- The new setting of- testOnBorrowfor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestOnBorrow(),- BaseGenericObjectPool.getTestOnBorrow()
 
 - 
setTestOnCreatepublic void setTestOnCreate(boolean testOnCreate) Sets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.- Parameters:
- testOnCreate- The new setting of- testOnCreatefor this configuration instance
- Since:
- 2.2
- See Also:
- BaseGenericObjectPool.getTestOnCreate(),- BaseGenericObjectPool.getTestOnCreate()
 
 - 
setTestOnReturnpublic void setTestOnReturn(boolean testOnReturn) Sets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.- Parameters:
- testOnReturn- The new setting of- testOnReturnfor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestOnReturn(),- BaseGenericObjectPool.getTestOnReturn()
 
 - 
setTestWhileIdlepublic void setTestWhileIdle(boolean testWhileIdle) Sets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.- Parameters:
- testWhileIdle- The new setting of- testWhileIdlefor this configuration instance
- See Also:
- BaseGenericObjectPool.getTestWhileIdle(),- BaseGenericObjectPool.getTestWhileIdle()
 
 - 
setTimeBetweenEvictionRunspublic void setTimeBetweenEvictionRuns(java.time.Duration timeBetweenEvictionRuns) Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Parameters:
- timeBetweenEvictionRuns- The new setting of- timeBetweenEvictionRunsfor this configuration instance
- Since:
- 2.10.0
- See Also:
- BaseGenericObjectPool.getDurationBetweenEvictionRuns(),- BaseGenericObjectPool.getDurationBetweenEvictionRuns()
 
 - 
setTimeBetweenEvictionRunsMillis@Deprecated public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) Deprecated.Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Parameters:
- timeBetweenEvictionRunsMillis- The new setting of- timeBetweenEvictionRunsfor this configuration instance
- See Also:
- BaseGenericObjectPool.getDurationBetweenEvictionRuns(),- BaseGenericObjectPool.getDurationBetweenEvictionRuns()
 
 - 
toStringAppendFieldsprotected void toStringAppendFields(java.lang.StringBuilder builder) Description copied from class:BaseObjectUsed by sub-classes to include the fields defined by the sub-class in theBaseObject.toString()output.- Overrides:
- toStringAppendFieldsin class- BaseObject
- Parameters:
- builder- Field names and values are appended to this object
 
 
- 
 
-