T - Type of element pooled.public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Cloneable
This class is not thread-safe.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_BLOCK_WHEN_EXHAUSTED
The default value for the
blockWhenExhausted configuration attribute. |
static Duration |
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS
The default value for the
timeBetweenEvictionRuns configuration attribute. |
static String |
DEFAULT_EVICTION_POLICY_CLASS_NAME
The default value for the
evictionPolicyClassName configuration attribute. |
static Duration |
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
The default value for
evictorShutdownTimeout configuration attribute. |
static long |
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
Deprecated.
|
static boolean |
DEFAULT_FAIRNESS
The default value for the
fairness configuration attribute. |
static boolean |
DEFAULT_JMX_ENABLE
The default value for enabling JMX for pools created with a configuration instance.
|
static String |
DEFAULT_JMX_NAME_BASE
The default value for the base name to use to name JMX enabled pools created with a configuration instance.
|
static String |
DEFAULT_JMX_NAME_PREFIX
The default value for the prefix used to name JMX enabled pools created with a configuration instance.
|
static boolean |
DEFAULT_LIFO
The default value for the
lifo configuration attribute. |
static Duration |
DEFAULT_MAX_WAIT
The default value for the
maxWait configuration attribute. |
static long |
DEFAULT_MAX_WAIT_MILLIS
Deprecated.
Use
DEFAULT_MAX_WAIT. |
static Duration |
DEFAULT_MIN_EVICTABLE_IDLE_DURATION
The default value for the
minEvictableIdleDuration configuration attribute. |
static Duration |
DEFAULT_MIN_EVICTABLE_IDLE_TIME
Deprecated.
|
static long |
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated.
|
static int |
DEFAULT_NUM_TESTS_PER_EVICTION_RUN
The default value for the
numTestsPerEvictionRun configuration attribute. |
static Duration |
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION
The default value for the
softMinEvictableIdleTime configuration attribute. |
static Duration |
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
Deprecated.
|
static long |
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated.
|
static boolean |
DEFAULT_TEST_ON_BORROW
The default value for the
testOnBorrow configuration attribute. |
static boolean |
DEFAULT_TEST_ON_CREATE
The default value for the
testOnCreate configuration attribute. |
static boolean |
DEFAULT_TEST_ON_RETURN
The default value for the
testOnReturn configuration attribute. |
static boolean |
DEFAULT_TEST_WHILE_IDLE
The default value for the
testWhileIdle configuration attribute. |
static Duration |
DEFAULT_TIME_BETWEEN_EVICTION_RUNS
Deprecated.
|
static long |
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
Deprecated.
|
| Constructor and Description |
|---|
BaseObjectPoolConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBlockWhenExhausted()
Gets the value for the
blockWhenExhausted configuration attribute for pools created with this configuration instance. |
Duration |
getDurationBetweenEvictionRuns()
Gets the value for the
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance. |
EvictionPolicy<T> |
getEvictionPolicy()
Gets the value for the
evictionPolicyClass configuration attribute for pools created with this configuration instance. |
String |
getEvictionPolicyClassName()
Gets the value for the
evictionPolicyClassName configuration attribute for pools created with this configuration instance. |
Duration |
getEvictorShutdownTimeout()
Deprecated.
|
Duration |
getEvictorShutdownTimeoutDuration()
Gets the value for the
evictorShutdownTimeout configuration attribute for pools created with this configuration instance. |
long |
getEvictorShutdownTimeoutMillis()
Deprecated.
|
boolean |
getFairness()
Gets the value for the
fairness configuration attribute for pools created with this configuration instance. |
boolean |
getJmxEnabled()
Gets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.
|
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.
|
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.
|
boolean |
getLifo()
Gets the value for the
lifo configuration attribute for pools created with this configuration instance. |
Duration |
getMaxWaitDuration()
Gets the value for the
maxWait configuration attribute for pools created with this configuration instance. |
long |
getMaxWaitMillis()
Deprecated.
Use
getMaxWaitDuration(). |
Duration |
getMinEvictableIdleDuration()
Gets the value for the
minEvictableIdleTime configuration attribute for pools created with this configuration instance. |
Duration |
getMinEvictableIdleTime()
Deprecated.
|
long |
getMinEvictableIdleTimeMillis()
Deprecated.
|
int |
getNumTestsPerEvictionRun()
Gets the value for the
numTestsPerEvictionRun configuration attribute for pools created with this configuration instance. |
Duration |
getSoftMinEvictableIdleDuration()
Gets the value for the
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance. |
Duration |
getSoftMinEvictableIdleTime()
Deprecated.
|
long |
getSoftMinEvictableIdleTimeMillis()
Deprecated.
|
boolean |
getTestOnBorrow()
Gets the value for the
testOnBorrow configuration attribute for pools created with this configuration instance. |
boolean |
getTestOnCreate()
Gets the value for the
testOnCreate configuration attribute for pools created with this configuration instance. |
boolean |
getTestOnReturn()
Gets the value for the
testOnReturn configuration attribute for pools created with this configuration instance. |
boolean |
getTestWhileIdle()
Gets the value for the
testWhileIdle configuration attribute for pools created with this configuration instance. |
Duration |
getTimeBetweenEvictionRuns()
Deprecated.
|
long |
getTimeBetweenEvictionRunsMillis()
Deprecated.
|
void |
setBlockWhenExhausted(boolean blockWhenExhausted)
Sets the value for the
blockWhenExhausted configuration attribute for pools created with this configuration instance. |
void |
setEvictionPolicy(EvictionPolicy<T> evictionPolicy)
Sets the value for the
evictionPolicyClass configuration attribute for pools created with this configuration instance. |
void |
setEvictionPolicyClassName(String evictionPolicyClassName)
Sets the value for the
evictionPolicyClassName configuration attribute for pools created with this configuration instance. |
void |
setEvictorShutdownTimeout(Duration evictorShutdownTimeoutDuration)
Sets the value for the
evictorShutdownTimeout configuration attribute for pools created with this configuration instance. |
void |
setEvictorShutdownTimeoutMillis(Duration evictorShutdownTimeout)
Deprecated.
|
void |
setEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis)
Deprecated.
|
void |
setFairness(boolean fairness)
Sets the value for the
fairness configuration attribute for pools created with this configuration instance. |
void |
setJmxEnabled(boolean jmxEnabled)
Sets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.
|
void |
setJmxNameBase(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.
|
void |
setJmxNamePrefix(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.
|
void |
setLifo(boolean lifo)
Sets the value for the
lifo configuration attribute for pools created with this configuration instance. |
void |
setMaxWait(Duration maxWaitDuration)
Sets the value for the
maxWait configuration attribute for pools created with this configuration instance. |
void |
setMaxWaitMillis(long maxWaitMillis)
Deprecated.
Use
setMaxWait(Duration). |
void |
setMinEvictableIdleDuration(Duration minEvictableIdleTime)
Sets the value for the
minEvictableIdleTime configuration attribute for pools created with this configuration instance. |
void |
setMinEvictableIdleTime(Duration minEvictableIdleTime)
Deprecated.
|
void |
setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
Deprecated.
|
void |
setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
Sets the value for the
numTestsPerEvictionRun configuration attribute for pools created with this configuration instance. |
void |
setSoftMinEvictableIdleDuration(Duration softMinEvictableIdleTime)
Sets the value for the
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance. |
void |
setSoftMinEvictableIdleTime(Duration softMinEvictableIdleTime)
Deprecated.
|
void |
setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
Deprecated.
|
void |
setTestOnBorrow(boolean testOnBorrow)
Sets the value for the
testOnBorrow configuration attribute for pools created with this configuration instance. |
void |
setTestOnCreate(boolean testOnCreate)
Sets the value for the
testOnCreate configuration attribute for pools created with this configuration instance. |
void |
setTestOnReturn(boolean testOnReturn)
Sets the value for the
testOnReturn configuration attribute for pools created with this configuration instance. |
void |
setTestWhileIdle(boolean testWhileIdle)
Sets the value for the
testWhileIdle configuration attribute for pools created with this configuration instance. |
void |
setTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns)
Sets the value for the
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance. |
void |
setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
Deprecated.
|
protected void |
toStringAppendFields(StringBuilder builder)
Used by sub-classes to include the fields defined by the sub-class in the
BaseObject.toString() output. |
toStringpublic static final boolean DEFAULT_LIFO
lifo configuration attribute.public static final boolean DEFAULT_FAIRNESS
fairness configuration attribute.@Deprecated public static final long DEFAULT_MAX_WAIT_MILLIS
DEFAULT_MAX_WAIT.maxWait configuration attribute.public static final Duration DEFAULT_MAX_WAIT
maxWait configuration attribute.BaseGenericObjectPool.getMaxWaitDuration(),
BaseGenericObjectPool.getMaxWaitDuration()@Deprecated public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
DEFAULT_MIN_EVICTABLE_IDLE_TIME.minEvictableIdleDuration configuration attribute.public static final Duration DEFAULT_MIN_EVICTABLE_IDLE_DURATION
minEvictableIdleDuration configuration attribute.BaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public static final Duration DEFAULT_MIN_EVICTABLE_IDLE_TIME
DEFAULT_MIN_EVICTABLE_IDLE_DURATION.minEvictableIdleDuration configuration attribute.BaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public static final long DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME.softMinEvictableIdleTime configuration attribute.@Deprecated public static final Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION.softMinEvictableIdleTime configuration attribute.public static final Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION
softMinEvictableIdleTime configuration attribute.@Deprecated public static final long DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT.evictorShutdownTimeout configuration attribute.public static final Duration DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
evictorShutdownTimeout configuration attribute.public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN
numTestsPerEvictionRun configuration attribute.public static final boolean DEFAULT_TEST_ON_CREATE
testOnCreate configuration attribute.BaseGenericObjectPool.getTestOnCreate(),
BaseGenericObjectPool.getTestOnCreate(),
Constant Field Valuespublic static final boolean DEFAULT_TEST_ON_BORROW
testOnBorrow configuration attribute.public static final boolean DEFAULT_TEST_ON_RETURN
testOnReturn configuration attribute.public static final boolean DEFAULT_TEST_WHILE_IDLE
testWhileIdle configuration attribute.@Deprecated public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
DEFAULT_TIME_BETWEEN_EVICTION_RUNS.timeBetweenEvictionRuns configuration attribute.public static final Duration DEFAULT_DURATION_BETWEEN_EVICTION_RUNS
timeBetweenEvictionRuns configuration attribute.@Deprecated public static final Duration DEFAULT_TIME_BETWEEN_EVICTION_RUNS
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS.timeBetweenEvictionRuns configuration attribute.public static final boolean DEFAULT_BLOCK_WHEN_EXHAUSTED
blockWhenExhausted configuration attribute.public static final boolean DEFAULT_JMX_ENABLE
public static final String DEFAULT_JMX_NAME_PREFIX
public static final String DEFAULT_JMX_NAME_BASE
null which means the
pool will provide the base name to use.public static final String DEFAULT_EVICTION_POLICY_CLASS_NAME
evictionPolicyClassName configuration attribute.public boolean getBlockWhenExhausted()
blockWhenExhausted configuration attribute for pools created with this configuration instance.blockWhenExhausted for this configuration instanceBaseGenericObjectPool.getBlockWhenExhausted(),
BaseGenericObjectPool.getBlockWhenExhausted()public Duration getDurationBetweenEvictionRuns()
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.timeBetweenEvictionRuns for this configuration instanceBaseGenericObjectPool.getDurationBetweenEvictionRuns(),
BaseGenericObjectPool.getDurationBetweenEvictionRuns()public EvictionPolicy<T> getEvictionPolicy()
evictionPolicyClass configuration attribute for pools created with this configuration instance.evictionPolicyClass for this configuration instanceBaseGenericObjectPool.getEvictionPolicy(),
BaseGenericObjectPool.getEvictionPolicy()public String getEvictionPolicyClassName()
evictionPolicyClassName configuration attribute for pools created with this configuration instance.evictionPolicyClassName for this configuration instanceBaseGenericObjectPool.getEvictionPolicyClassName(),
BaseGenericObjectPool.getEvictionPolicyClassName()@Deprecated public Duration getEvictorShutdownTimeout()
getEvictorShutdownTimeoutDuration().evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()public Duration getEvictorShutdownTimeoutDuration()
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()@Deprecated public long getEvictorShutdownTimeoutMillis()
getEvictorShutdownTimeout().evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()public boolean getFairness()
fairness configuration attribute for pools created with this configuration instance.fairness for this configuration instanceBaseGenericObjectPool.getFairness(),
BaseGenericObjectPool.getFairness()public boolean getJmxEnabled()
jmxEnabled for this configuration instancepublic String getJmxNameBase()
null means that the pool will define the JMX name base.jmxNameBase for this configuration instancepublic String getJmxNamePrefix()
jmxNamePrefix for this configuration instancepublic boolean getLifo()
lifo configuration attribute for pools created with this configuration instance.lifo for this configuration instanceBaseGenericObjectPool.getLifo(),
BaseGenericObjectPool.getLifo()public Duration getMaxWaitDuration()
maxWait configuration attribute for pools created with this configuration instance.maxWait for this configuration instanceBaseGenericObjectPool.getMaxWaitDuration(),
BaseGenericObjectPool.getMaxWaitDuration()@Deprecated public long getMaxWaitMillis()
getMaxWaitDuration().maxWait configuration attribute for pools created with this configuration instance.maxWait for this configuration instanceBaseGenericObjectPool.getMaxWaitDuration(),
BaseGenericObjectPool.getMaxWaitDuration()public Duration getMinEvictableIdleDuration()
minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public Duration getMinEvictableIdleTime()
getMinEvictableIdleDuration().minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public long getMinEvictableIdleTimeMillis()
getMinEvictableIdleTime().minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()public int getNumTestsPerEvictionRun()
numTestsPerEvictionRun configuration attribute for pools created with this configuration instance.numTestsPerEvictionRun for this configuration instanceBaseGenericObjectPool.getNumTestsPerEvictionRun(),
BaseGenericObjectPool.getNumTestsPerEvictionRun()public Duration getSoftMinEvictableIdleDuration()
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()@Deprecated public Duration getSoftMinEvictableIdleTime()
getSoftMinEvictableIdleDuration().softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()@Deprecated public long getSoftMinEvictableIdleTimeMillis()
getSoftMinEvictableIdleDuration().softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()public boolean getTestOnBorrow()
testOnBorrow configuration attribute for pools created with this configuration instance.testOnBorrow for this configuration instanceBaseGenericObjectPool.getTestOnBorrow(),
BaseGenericObjectPool.getTestOnBorrow()public boolean getTestOnCreate()
testOnCreate configuration attribute for pools created with this configuration instance.testOnCreate for this configuration instanceBaseGenericObjectPool.getTestOnCreate(),
BaseGenericObjectPool.getTestOnCreate()public boolean getTestOnReturn()
testOnReturn configuration attribute for pools created with this configuration instance.testOnReturn for this configuration instanceBaseGenericObjectPool.getTestOnReturn(),
BaseGenericObjectPool.getTestOnReturn()public boolean getTestWhileIdle()
testWhileIdle configuration attribute for pools created with this configuration instance.testWhileIdle for this configuration instanceBaseGenericObjectPool.getTestWhileIdle(),
BaseGenericObjectPool.getTestWhileIdle()@Deprecated public Duration getTimeBetweenEvictionRuns()
getDurationBetweenEvictionRuns().timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.timeBetweenEvictionRuns for this configuration instanceBaseGenericObjectPool.getDurationBetweenEvictionRuns(),
BaseGenericObjectPool.getDurationBetweenEvictionRuns()@Deprecated public long getTimeBetweenEvictionRunsMillis()
getDurationBetweenEvictionRuns().timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.timeBetweenEvictionRuns for this configuration instanceBaseGenericObjectPool.getDurationBetweenEvictionRuns(),
BaseGenericObjectPool.getDurationBetweenEvictionRuns()public void setBlockWhenExhausted(boolean blockWhenExhausted)
blockWhenExhausted configuration attribute for pools created with this configuration instance.blockWhenExhausted - The new setting of blockWhenExhausted for this configuration instanceBaseGenericObjectPool.getBlockWhenExhausted(),
BaseGenericObjectPool.getBlockWhenExhausted()public void setEvictionPolicy(EvictionPolicy<T> evictionPolicy)
evictionPolicyClass configuration attribute for pools created with this configuration instance.evictionPolicy - The new setting of evictionPolicyClass for this configuration instanceBaseGenericObjectPool.getEvictionPolicy(),
BaseGenericObjectPool.getEvictionPolicy()public void setEvictionPolicyClassName(String evictionPolicyClassName)
evictionPolicyClassName configuration attribute for pools created with this configuration instance.evictionPolicyClassName - The new setting of evictionPolicyClassName for this configuration instanceBaseGenericObjectPool.getEvictionPolicyClassName(),
BaseGenericObjectPool.getEvictionPolicyClassName()public void setEvictorShutdownTimeout(Duration evictorShutdownTimeoutDuration)
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeoutDuration - The new setting of evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()@Deprecated public void setEvictorShutdownTimeoutMillis(Duration evictorShutdownTimeout)
setEvictorShutdownTimeout(Duration).evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeout - The new setting of evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()@Deprecated public void setEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis)
setEvictorShutdownTimeout(Duration).evictorShutdownTimeout configuration attribute for pools created with this configuration instance.evictorShutdownTimeoutMillis - The new setting of evictorShutdownTimeout for this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutDuration(),
BaseGenericObjectPool.getEvictorShutdownTimeoutDuration()public void setFairness(boolean fairness)
fairness configuration attribute for pools created with this configuration instance.fairness - The new setting of fairness for this configuration instanceBaseGenericObjectPool.getFairness(),
BaseGenericObjectPool.getFairness()public void setJmxEnabled(boolean jmxEnabled)
jmxEnabled - The new setting of jmxEnabled for this configuration instancepublic void setJmxNameBase(String jmxNameBase)
null means that the pool will define the JMX name base.jmxNameBase - The new setting of jmxNameBase for this configuration instancepublic void setJmxNamePrefix(String jmxNamePrefix)
jmxNamePrefix - The new setting of jmxNamePrefix for this configuration instancepublic void setLifo(boolean lifo)
lifo configuration attribute for pools created with this configuration instance.lifo - The new setting of lifo for this configuration instanceBaseGenericObjectPool.getLifo(),
BaseGenericObjectPool.getLifo()public void setMaxWait(Duration maxWaitDuration)
maxWait configuration attribute for pools created with this configuration instance.maxWaitDuration - The new setting of maxWaitDuration for this configuration instanceBaseGenericObjectPool.getMaxWaitDuration(),
BaseGenericObjectPool.getMaxWaitDuration()@Deprecated public void setMaxWaitMillis(long maxWaitMillis)
setMaxWait(Duration).maxWait configuration attribute for pools created with this configuration instance.maxWaitMillis - The new setting of maxWaitMillis for this configuration instanceBaseGenericObjectPool.getMaxWaitDuration(),
BaseGenericObjectPool.getMaxWaitDuration()public void setMinEvictableIdleDuration(Duration minEvictableIdleTime)
minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTime - The new setting of minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public void setMinEvictableIdleTime(Duration minEvictableIdleTime)
setMinEvictableIdleDuration(Duration).minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTime - The new setting of minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()@Deprecated public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
setMinEvictableIdleDuration(Duration).minEvictableIdleTime configuration attribute for pools created with this configuration instance.minEvictableIdleTimeMillis - The new setting of minEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleDuration(),
BaseGenericObjectPool.getMinEvictableIdleDuration()public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
numTestsPerEvictionRun configuration attribute for pools created with this configuration instance.numTestsPerEvictionRun - The new setting of numTestsPerEvictionRun for this configuration instanceBaseGenericObjectPool.getNumTestsPerEvictionRun(),
BaseGenericObjectPool.getNumTestsPerEvictionRun()public void setSoftMinEvictableIdleDuration(Duration softMinEvictableIdleTime)
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTime - The new setting of softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()@Deprecated public void setSoftMinEvictableIdleTime(Duration softMinEvictableIdleTime)
setSoftMinEvictableIdleDuration(Duration).softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTime - The new setting of softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()@Deprecated public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
setSoftMinEvictableIdleDuration(Duration).softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.softMinEvictableIdleTimeMillis - The new setting of softMinEvictableIdleTime for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleDuration(),
BaseGenericObjectPool.getSoftMinEvictableIdleDuration()public void setTestOnBorrow(boolean testOnBorrow)
testOnBorrow configuration attribute for pools created with this configuration instance.testOnBorrow - The new setting of testOnBorrow for this configuration instanceBaseGenericObjectPool.getTestOnBorrow(),
BaseGenericObjectPool.getTestOnBorrow()public void setTestOnCreate(boolean testOnCreate)
testOnCreate configuration attribute for pools created with this configuration instance.testOnCreate - The new setting of testOnCreate for this configuration instanceBaseGenericObjectPool.getTestOnCreate(),
BaseGenericObjectPool.getTestOnCreate()public void setTestOnReturn(boolean testOnReturn)
testOnReturn configuration attribute for pools created with this configuration instance.testOnReturn - The new setting of testOnReturn for this configuration instanceBaseGenericObjectPool.getTestOnReturn(),
BaseGenericObjectPool.getTestOnReturn()public void setTestWhileIdle(boolean testWhileIdle)
testWhileIdle configuration attribute for pools created with this configuration instance.testWhileIdle - The new setting of testWhileIdle for this configuration instanceBaseGenericObjectPool.getTestWhileIdle(),
BaseGenericObjectPool.getTestWhileIdle()public void setTimeBetweenEvictionRuns(Duration timeBetweenEvictionRuns)
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.timeBetweenEvictionRuns - The new setting of timeBetweenEvictionRuns for this configuration instanceBaseGenericObjectPool.getDurationBetweenEvictionRuns(),
BaseGenericObjectPool.getDurationBetweenEvictionRuns()@Deprecated public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
setTimeBetweenEvictionRuns(Duration).timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.timeBetweenEvictionRunsMillis - The new setting of timeBetweenEvictionRuns for this configuration instanceBaseGenericObjectPool.getDurationBetweenEvictionRuns(),
BaseGenericObjectPool.getDurationBetweenEvictionRuns()protected void toStringAppendFields(StringBuilder builder)
BaseObjectBaseObject.toString() output.toStringAppendFields in class BaseObjectbuilder - Field names and values are appended to this objectCopyright © 2001–2025 The Apache Software Foundation. All rights reserved.