T
- Type of element pooled.public abstract class BaseObjectPoolConfig<T> extends BaseObject implements java.lang.Cloneable
This class is not thread-safe.
限定符和类型 | 字段和说明 |
---|---|
static boolean |
DEFAULT_BLOCK_WHEN_EXHAUSTED
The default value for the
blockWhenExhausted configuration
attribute. |
static java.lang.String |
DEFAULT_EVICTION_POLICY_CLASS_NAME
The default value for the
evictionPolicyClassName configuration
attribute. |
static java.time.Duration |
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
The default value for
evictorShutdownTimeout configuration
attribute. |
static long |
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
已过时。
|
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 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.
|
static java.lang.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 java.time.Duration |
DEFAULT_MAX_WAIT
The default value for the
maxWait configuration attribute. |
static long |
DEFAULT_MAX_WAIT_MILLIS
The default value for the
maxWait configuration attribute. |
static java.time.Duration |
DEFAULT_MIN_EVICTABLE_IDLE_TIME
The default value for the
minEvictableIdleTime
configuration attribute. |
static long |
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
已过时。
|
static int |
DEFAULT_NUM_TESTS_PER_EVICTION_RUN
The default value for the
numTestsPerEvictionRun configuration
attribute. |
static java.time.Duration |
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
The default value for the
softMinEvictableIdleTime
configuration attribute. |
static long |
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
已过时。
|
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 java.time.Duration |
DEFAULT_TIME_BETWEEN_EVICTION_RUNS
The default value for the
timeBetweenEvictionRuns
configuration attribute. |
static long |
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
已过时。
|
构造器和说明 |
---|
BaseObjectPoolConfig() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
getBlockWhenExhausted()
Gets the value for the
blockWhenExhausted 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. |
java.lang.String |
getEvictionPolicyClassName()
Gets the value for the
evictionPolicyClassName configuration
attribute for pools created with this configuration instance. |
java.time.Duration |
getEvictorShutdownTimeout()
Gets the value for the
evictorShutdownTimeout configuration
attribute for pools created with this configuration instance. |
long |
getEvictorShutdownTimeoutMillis()
已过时。
|
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.
|
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.
|
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.
|
boolean |
getLifo()
Gets the value for the
lifo configuration attribute for pools
created with this configuration instance. |
long |
getMaxWaitMillis()
Gets the value for the
maxWait configuration attribute for pools
created with this configuration instance. |
java.time.Duration |
getMinEvictableIdleTime()
Gets the value for the
minEvictableIdleTime configuration
attribute for pools created with this configuration instance. |
long |
getMinEvictableIdleTimeMillis()
已过时。
|
int |
getNumTestsPerEvictionRun()
Gets the value for the
numTestsPerEvictionRun configuration
attribute for pools created with this configuration instance. |
java.time.Duration |
getSoftMinEvictableIdleTime()
Gets the value for the
softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance. |
long |
getSoftMinEvictableIdleTimeMillis()
已过时。
|
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. |
java.time.Duration |
getTimeBetweenEvictionRuns()
Gets the value for the
timeBetweenEvictionRuns configuration
attribute for pools created with this configuration instance. |
long |
getTimeBetweenEvictionRunsMillis()
已过时。
|
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(java.lang.String evictionPolicyClassName)
Sets the value for the
evictionPolicyClassName configuration
attribute for pools created with this configuration instance. |
void |
setEvictorShutdownTimeoutMillis(java.time.Duration evictorShutdownTimeoutMillis)
Sets the value for the
evictorShutdownTimeout configuration
attribute for pools created with this configuration instance. |
void |
setEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis)
|
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(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.
|
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.
|
void |
setLifo(boolean lifo)
Sets the value for the
lifo configuration attribute for pools
created with this configuration instance. |
void |
setMaxWaitMillis(long maxWaitMillis)
Sets the value for the
maxWait configuration attribute for pools
created with this configuration instance. |
void |
setMinEvictableIdleTime(java.time.Duration minEvictableIdleTime)
Sets the value for the
minEvictableIdleTime configuration
attribute for pools created with this configuration instance. |
void |
setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
已过时。
|
void |
setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
Sets the value for the
numTestsPerEvictionRun configuration
attribute for pools created with this configuration instance. |
void |
setSoftMinEvictableIdleTime(java.time.Duration softMinEvictableIdleTime)
Sets the value for the
softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance. |
void |
setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
已过时。
|
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(java.time.Duration timeBetweenEvictionRunsMillis)
Sets the value for the
timeBetweenEvictionRuns configuration
attribute for pools created with this configuration instance. |
void |
setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
已过时。
|
toString
public static final boolean DEFAULT_LIFO
lifo
configuration attribute.public static final boolean DEFAULT_FAIRNESS
fairness
configuration attribute.public static final long DEFAULT_MAX_WAIT_MILLIS
maxWait
configuration attribute.public static final java.time.Duration DEFAULT_MAX_WAIT
maxWait
configuration attribute.BaseGenericObjectPool.getMaxWaitMillis()
,
BaseGenericObjectPool.getMaxWaitMillis()
@Deprecated public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
DEFAULT_MIN_EVICTABLE_IDLE_TIME
.minEvictableIdleTime
configuration attribute.public static final java.time.Duration DEFAULT_MIN_EVICTABLE_IDLE_TIME
minEvictableIdleTime
configuration attribute.@Deprecated public static final long DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
.softMinEvictableIdleTime
configuration attribute.public static final java.time.Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
softMinEvictableIdleTime
configuration attribute.@Deprecated public static final long DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
.evictorShutdownTimeout
configuration
attribute.public static final java.time.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()
,
常量字段值public 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 java.time.Duration DEFAULT_TIME_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 java.lang.String DEFAULT_JMX_NAME_PREFIX
public static final java.lang.String DEFAULT_JMX_NAME_BASE
null
which means the pool will provide the base name to use.public static final java.lang.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 EvictionPolicy<T> getEvictionPolicy()
evictionPolicyClass
configuration
attribute for pools created with this configuration instance.evictionPolicyClass
for this
configuration instanceBaseGenericObjectPool.getEvictionPolicy()
,
BaseGenericObjectPool.getEvictionPolicy()
public java.lang.String getEvictionPolicyClassName()
evictionPolicyClassName
configuration
attribute for pools created with this configuration instance.evictionPolicyClassName
for this
configuration instanceBaseGenericObjectPool.getEvictionPolicyClassName()
,
BaseGenericObjectPool.getEvictionPolicyClassName()
public java.time.Duration getEvictorShutdownTimeout()
evictorShutdownTimeout
configuration
attribute for pools created with this configuration instance.evictorShutdownTimeout
for
this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeout()
,
BaseGenericObjectPool.getEvictorShutdownTimeout()
@Deprecated public long getEvictorShutdownTimeoutMillis()
getEvictorShutdownTimeout()
.evictorShutdownTimeout
configuration
attribute for pools created with this configuration instance.evictorShutdownTimeout
for
this configuration instanceBaseGenericObjectPool.getEvictorShutdownTimeoutMillis()
,
BaseGenericObjectPool.getEvictorShutdownTimeoutMillis()
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 java.lang.String getJmxNameBase()
null
means that the pool will define
the JMX name base.jmxNameBase
for this
configuration instancepublic java.lang.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 long getMaxWaitMillis()
maxWait
configuration attribute for pools
created with this configuration instance.maxWait
for this
configuration instanceBaseGenericObjectPool.getMaxWaitMillis()
,
BaseGenericObjectPool.getMaxWaitMillis()
public java.time.Duration getMinEvictableIdleTime()
minEvictableIdleTime
configuration
attribute for pools created with this configuration instance.minEvictableIdleTime
for
this configuration instanceBaseGenericObjectPool.getMinEvictableIdleTime()
,
BaseGenericObjectPool.getMinEvictableIdleTime()
@Deprecated public long getMinEvictableIdleTimeMillis()
getMinEvictableIdleTime()
.minEvictableIdleTime
configuration
attribute for pools created with this configuration instance.minEvictableIdleTime
for
this configuration instanceBaseGenericObjectPool.getMinEvictableIdleTimeMillis()
,
BaseGenericObjectPool.getMinEvictableIdleTimeMillis()
public int getNumTestsPerEvictionRun()
numTestsPerEvictionRun
configuration
attribute for pools created with this configuration instance.numTestsPerEvictionRun
for this
configuration instanceBaseGenericObjectPool.getNumTestsPerEvictionRun()
,
BaseGenericObjectPool.getNumTestsPerEvictionRun()
public java.time.Duration getSoftMinEvictableIdleTime()
softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance.softMinEvictableIdleTime
for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleTime()
,
BaseGenericObjectPool.getSoftMinEvictableIdleTime()
@Deprecated public long getSoftMinEvictableIdleTimeMillis()
softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance.softMinEvictableIdleTime
for this configuration instanceBaseGenericObjectPool.getSoftMinEvictableIdleTime()
,
BaseGenericObjectPool.getSoftMinEvictableIdleTime()
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()
public java.time.Duration getTimeBetweenEvictionRuns()
timeBetweenEvictionRuns
configuration
attribute for pools created with this configuration instance.timeBetweenEvictionRuns
for
this configuration instanceBaseGenericObjectPool.getTimeBetweenEvictionRuns()
,
BaseGenericObjectPool.getTimeBetweenEvictionRuns()
@Deprecated public long getTimeBetweenEvictionRunsMillis()
getTimeBetweenEvictionRuns()
.timeBetweenEvictionRuns
configuration
attribute for pools created with this configuration instance.timeBetweenEvictionRuns
for
this configuration instanceBaseGenericObjectPool.getTimeBetweenEvictionRunsMillis()
,
BaseGenericObjectPool.getTimeBetweenEvictionRunsMillis()
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(java.lang.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 setEvictorShutdownTimeoutMillis(java.time.Duration evictorShutdownTimeoutMillis)
evictorShutdownTimeout
configuration
attribute for pools created with this configuration instance.evictorShutdownTimeoutMillis
- The new setting of
evictorShutdownTimeout
for this configuration
instanceBaseGenericObjectPool.getEvictorShutdownTimeout()
,
BaseGenericObjectPool.getEvictorShutdownTimeout()
@Deprecated public void setEvictorShutdownTimeoutMillis(long evictorShutdownTimeoutMillis)
evictorShutdownTimeout
configuration
attribute for pools created with this configuration instance.evictorShutdownTimeoutMillis
- The new setting of
evictorShutdownTimeout
for this configuration
instanceBaseGenericObjectPool.getEvictorShutdownTimeoutMillis()
,
BaseGenericObjectPool.getEvictorShutdownTimeoutMillis()
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(java.lang.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(java.lang.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 setMaxWaitMillis(long maxWaitMillis)
maxWait
configuration attribute for pools
created with this configuration instance.maxWaitMillis
- The new setting of maxWaitMillis
for this configuration instanceBaseGenericObjectPool.getMaxWaitMillis()
,
BaseGenericObjectPool.getMaxWaitMillis()
public void setMinEvictableIdleTime(java.time.Duration minEvictableIdleTime)
minEvictableIdleTime
configuration
attribute for pools created with this configuration instance.minEvictableIdleTime
- The new setting of
minEvictableIdleTime
for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleTime()
,
BaseGenericObjectPool.getMinEvictableIdleTime()
@Deprecated public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
setSoftMinEvictableIdleTime(Duration)
.minEvictableIdleTime
configuration
attribute for pools created with this configuration instance.minEvictableIdleTimeMillis
- The new setting of
minEvictableIdleTime
for this configuration instanceBaseGenericObjectPool.getMinEvictableIdleTimeMillis()
,
BaseGenericObjectPool.getMinEvictableIdleTimeMillis()
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 setSoftMinEvictableIdleTime(java.time.Duration softMinEvictableIdleTime)
softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance.softMinEvictableIdleTime
- The new setting of
softMinEvictableIdleTime
for this configuration
instanceBaseGenericObjectPool.getSoftMinEvictableIdleTime()
,
BaseGenericObjectPool.getSoftMinEvictableIdleTime()
@Deprecated public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)
setSoftMinEvictableIdleTime(Duration)
.softMinEvictableIdleTime
configuration attribute for pools created with this configuration
instance.softMinEvictableIdleTimeMillis
- The new setting of
softMinEvictableIdleTime
for this configuration
instanceBaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis()
,
BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis()
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(java.time.Duration timeBetweenEvictionRunsMillis)
timeBetweenEvictionRuns
configuration
attribute for pools created with this configuration instance.timeBetweenEvictionRunsMillis
- The new setting of
timeBetweenEvictionRuns
for this configuration
instanceBaseGenericObjectPool.getTimeBetweenEvictionRuns()
,
BaseGenericObjectPool.getTimeBetweenEvictionRuns()
@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.getTimeBetweenEvictionRunsMillis()
,
BaseGenericObjectPool.getTimeBetweenEvictionRunsMillis()