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:
Cloneable
- Direct Known Subclasses:
GenericKeyedObjectPoolConfig,GenericObjectPoolConfig
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default value for theblockWhenExhaustedconfiguration attribute.static final DurationThe default value for thetimeBetweenEvictionRunsconfiguration attribute.static final StringThe default value for theevictionPolicyClassNameconfiguration attribute.static final DurationThe default value forevictorShutdownTimeoutconfiguration attribute.static final longDeprecated.static final booleanThe default value for thefairnessconfiguration attribute.static final booleanThe default value for enabling JMX for pools created with a configuration instance.static final StringThe default value for the base name to use to name JMX enabled pools created with a configuration instance.static final StringThe default value for the prefix used to name JMX enabled pools created with a configuration instance.static final booleanThe default value for thelifoconfiguration attribute.static final DurationThe default value for themaxWaitconfiguration attribute.static final longDeprecated.UseDEFAULT_MAX_WAIT.static final DurationThe default value for theminEvictableIdleDurationconfiguration attribute.static final DurationDeprecated.static final longDeprecated.static final intThe default value for thenumTestsPerEvictionRunconfiguration attribute.static final DurationThe default value for thesoftMinEvictableIdleTimeconfiguration attribute.static final DurationDeprecated.static final longDeprecated.static final booleanThe default value for thetestOnBorrowconfiguration attribute.static final booleanThe default value for thetestOnCreateconfiguration attribute.static final booleanThe default value for thetestOnReturnconfiguration attribute.static final booleanThe default value for thetestWhileIdleconfiguration attribute.static final DurationDeprecated.static final longDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.Gets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.Gets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.Gets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.Deprecated.Gets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.longDeprecated.booleanGets the value for thefairnessconfiguration attribute for pools created with this configuration instance.booleanGets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.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.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.Gets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.longDeprecated.UsegetMaxWaitDuration().Gets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.Deprecated.longDeprecated.intGets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.Gets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.Deprecated.longDeprecated.booleanGets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.booleanGets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.booleanGets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.booleanGets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.Deprecated.longDeprecated.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(String evictionPolicyClassName) Sets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.voidsetEvictorShutdownTimeout(Duration evictorShutdownTimeoutDuration) Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.voidsetEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis) Deprecated.voidsetEvictorShutdownTimeoutMillis(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(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(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(Duration maxWaitDuration) Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.voidsetMaxWaitMillis(long maxWaitMillis) Deprecated.UsesetMaxWait(Duration).voidsetMinEvictableIdleDuration(Duration minEvictableIdleTime) Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.voidsetMinEvictableIdleTime(Duration minEvictableIdleTime) Deprecated.voidsetMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) Deprecated.voidsetNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.voidsetSoftMinEvictableIdleDuration(Duration softMinEvictableIdleTime) Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.voidsetSoftMinEvictableIdleTime(Duration softMinEvictableIdleTime) Deprecated.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(Duration timeBetweenEvictionRuns) Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.voidsetTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) Deprecated.protected voidtoStringAppendFields(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.BaseObject
toString
-
Field Details
-
DEFAULT_LIFO
public static final boolean DEFAULT_LIFOThe default value for thelifoconfiguration attribute.- See Also:
-
DEFAULT_FAIRNESS
public static final boolean DEFAULT_FAIRNESSThe default value for thefairnessconfiguration attribute.- See Also:
-
DEFAULT_MAX_WAIT_MILLIS
Deprecated.UseDEFAULT_MAX_WAIT.The default value for themaxWaitconfiguration attribute.- See Also:
-
DEFAULT_MAX_WAIT
The default value for themaxWaitconfiguration attribute.- Since:
- 2.10.0
- See Also:
-
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated.The default value for theminEvictableIdleDurationconfiguration attribute.- See Also:
-
DEFAULT_MIN_EVICTABLE_IDLE_DURATION
The default value for theminEvictableIdleDurationconfiguration attribute.- Since:
- 2.11.0
- See Also:
-
DEFAULT_MIN_EVICTABLE_IDLE_TIME
Deprecated.The default value for theminEvictableIdleDurationconfiguration attribute.- Since:
- 2.10.0
- See Also:
-
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated.The default value for thesoftMinEvictableIdleTimeconfiguration attribute.- See Also:
-
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
Deprecated.The default value for thesoftMinEvictableIdleTimeconfiguration attribute.- Since:
- 2.10.0
- See Also:
-
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION
The default value for thesoftMinEvictableIdleTimeconfiguration attribute.- Since:
- 2.11.0
- See Also:
-
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
Deprecated.The default value forevictorShutdownTimeoutconfiguration attribute.- See Also:
-
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
The default value forevictorShutdownTimeoutconfiguration attribute.- Since:
- 2.10.0
- See Also:
-
DEFAULT_NUM_TESTS_PER_EVICTION_RUN
public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUNThe default value for thenumTestsPerEvictionRunconfiguration attribute.- See Also:
-
DEFAULT_TEST_ON_CREATE
public static final boolean DEFAULT_TEST_ON_CREATEThe default value for thetestOnCreateconfiguration attribute.- Since:
- 2.2
- See Also:
-
DEFAULT_TEST_ON_BORROW
public static final boolean DEFAULT_TEST_ON_BORROWThe default value for thetestOnBorrowconfiguration attribute.- See Also:
-
DEFAULT_TEST_ON_RETURN
public static final boolean DEFAULT_TEST_ON_RETURNThe default value for thetestOnReturnconfiguration attribute.- See Also:
-
DEFAULT_TEST_WHILE_IDLE
public static final boolean DEFAULT_TEST_WHILE_IDLEThe default value for thetestWhileIdleconfiguration attribute.- See Also:
-
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
Deprecated.The default value for thetimeBetweenEvictionRunsconfiguration attribute.- See Also:
-
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS
The default value for thetimeBetweenEvictionRunsconfiguration attribute.- Since:
- 2.12.0
- See Also:
-
DEFAULT_TIME_BETWEEN_EVICTION_RUNS
Deprecated.The default value for thetimeBetweenEvictionRunsconfiguration attribute.- See Also:
-
DEFAULT_BLOCK_WHEN_EXHAUSTED
public static final boolean DEFAULT_BLOCK_WHEN_EXHAUSTEDThe default value for theblockWhenExhaustedconfiguration attribute.- See Also:
-
DEFAULT_JMX_ENABLE
public static final boolean DEFAULT_JMX_ENABLEThe default value for enabling JMX for pools created with a configuration instance.- See Also:
-
DEFAULT_JMX_NAME_PREFIX
The default value for the prefix used to name JMX enabled pools created with a configuration instance.- See Also:
-
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.- See Also:
-
DEFAULT_EVICTION_POLICY_CLASS_NAME
The default value for theevictionPolicyClassNameconfiguration attribute.- See Also:
-
-
Constructor Details
-
BaseObjectPoolConfig
public BaseObjectPoolConfig()
-
-
Method Details
-
getBlockWhenExhausted
public 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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
getFairness
public 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:
-
getJmxEnabled
public 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
-
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
-
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
-
getLifo
public 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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
getNumTestsPerEvictionRun
public 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:
-
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:
-
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:
-
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:
-
getTestOnBorrow
public 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:
-
getTestOnCreate
public 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:
-
getTestOnReturn
public 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:
-
getTestWhileIdle
public 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:
-
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:
-
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:
-
setBlockWhenExhausted
public void setBlockWhenExhausted(boolean blockWhenExhausted) Sets the value for theblockWhenExhaustedconfiguration attribute for pools created with this configuration instance.- Parameters:
blockWhenExhausted- The new setting ofblockWhenExhaustedfor this configuration instance- See Also:
-
setEvictionPolicy
Sets the value for theevictionPolicyClassconfiguration attribute for pools created with this configuration instance.- Parameters:
evictionPolicy- The new setting ofevictionPolicyClassfor this configuration instance- Since:
- 2.6.0
- See Also:
-
setEvictionPolicyClassName
Sets the value for theevictionPolicyClassNameconfiguration attribute for pools created with this configuration instance.- Parameters:
evictionPolicyClassName- The new setting ofevictionPolicyClassNamefor this configuration instance- See Also:
-
setEvictorShutdownTimeout
Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
evictorShutdownTimeoutDuration- The new setting ofevictorShutdownTimeoutfor this configuration instance- Since:
- 2.11.0
- See Also:
-
setEvictorShutdownTimeoutMillis
Deprecated.Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
evictorShutdownTimeout- The new setting ofevictorShutdownTimeoutfor this configuration instance- Since:
- 2.10.0
- See Also:
-
setEvictorShutdownTimeoutMillis
Deprecated.Sets the value for theevictorShutdownTimeoutconfiguration attribute for pools created with this configuration instance.- Parameters:
evictorShutdownTimeoutMillis- The new setting ofevictorShutdownTimeoutfor this configuration instance- See Also:
-
setFairness
public void setFairness(boolean fairness) Sets the value for thefairnessconfiguration attribute for pools created with this configuration instance.- Parameters:
fairness- The new setting offairnessfor this configuration instance- See Also:
-
setJmxEnabled
public 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 ofjmxEnabledfor this configuration instance
-
setJmxNameBase
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 ofjmxNameBasefor this configuration instance
-
setJmxNamePrefix
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 ofjmxNamePrefixfor this configuration instance
-
setLifo
public void setLifo(boolean lifo) Sets the value for thelifoconfiguration attribute for pools created with this configuration instance.- Parameters:
lifo- The new setting oflifofor this configuration instance- See Also:
-
setMaxWait
Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Parameters:
maxWaitDuration- The new setting ofmaxWaitDurationfor this configuration instance- Since:
- 2.11.0
- See Also:
-
setMaxWaitMillis
Deprecated.UsesetMaxWait(Duration).Sets the value for themaxWaitconfiguration attribute for pools created with this configuration instance.- Parameters:
maxWaitMillis- The new setting ofmaxWaitMillisfor this configuration instance- See Also:
-
setMinEvictableIdleDuration
Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
minEvictableIdleTime- The new setting ofminEvictableIdleTimefor this configuration instance- Since:
- 2.12.0
- See Also:
-
setMinEvictableIdleTime
Deprecated.Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
minEvictableIdleTime- The new setting ofminEvictableIdleTimefor this configuration instance- Since:
- 2.10.0
- See Also:
-
setMinEvictableIdleTimeMillis
Deprecated.Sets the value for theminEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
minEvictableIdleTimeMillis- The new setting ofminEvictableIdleTimefor this configuration instance- See Also:
-
setNumTestsPerEvictionRun
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the value for thenumTestsPerEvictionRunconfiguration attribute for pools created with this configuration instance.- Parameters:
numTestsPerEvictionRun- The new setting ofnumTestsPerEvictionRunfor this configuration instance- See Also:
-
setSoftMinEvictableIdleDuration
Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
softMinEvictableIdleTime- The new setting ofsoftMinEvictableIdleTimefor this configuration instance- Since:
- 2.12.0
- See Also:
-
setSoftMinEvictableIdleTime
Deprecated.Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
softMinEvictableIdleTime- The new setting ofsoftMinEvictableIdleTimefor this configuration instance- Since:
- 2.10.0
- See Also:
-
setSoftMinEvictableIdleTimeMillis
Deprecated.Sets the value for thesoftMinEvictableIdleTimeconfiguration attribute for pools created with this configuration instance.- Parameters:
softMinEvictableIdleTimeMillis- The new setting ofsoftMinEvictableIdleTimefor this configuration instance- See Also:
-
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow) Sets the value for thetestOnBorrowconfiguration attribute for pools created with this configuration instance.- Parameters:
testOnBorrow- The new setting oftestOnBorrowfor this configuration instance- See Also:
-
setTestOnCreate
public void setTestOnCreate(boolean testOnCreate) Sets the value for thetestOnCreateconfiguration attribute for pools created with this configuration instance.- Parameters:
testOnCreate- The new setting oftestOnCreatefor this configuration instance- Since:
- 2.2
- See Also:
-
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn) Sets the value for thetestOnReturnconfiguration attribute for pools created with this configuration instance.- Parameters:
testOnReturn- The new setting oftestOnReturnfor this configuration instance- See Also:
-
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle) Sets the value for thetestWhileIdleconfiguration attribute for pools created with this configuration instance.- Parameters:
testWhileIdle- The new setting oftestWhileIdlefor this configuration instance- See Also:
-
setTimeBetweenEvictionRuns
Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Parameters:
timeBetweenEvictionRuns- The new setting oftimeBetweenEvictionRunsfor this configuration instance- Since:
- 2.10.0
- See Also:
-
setTimeBetweenEvictionRunsMillis
Deprecated.Sets the value for thetimeBetweenEvictionRunsconfiguration attribute for pools created with this configuration instance.- Parameters:
timeBetweenEvictionRunsMillis- The new setting oftimeBetweenEvictionRunsfor this configuration instance- See Also:
-
toStringAppendFields
Description copied from class:BaseObjectUsed by sub-classes to include the fields defined by the sub-class in theBaseObject.toString()output.- Overrides:
toStringAppendFieldsin classBaseObject- Parameters:
builder- Field names and values are appended to this object
-
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT.