This class is not thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| public static final boolean | DEFAULT_BLOCK_WHEN_EXHAUSTED
The default value for the |
| public static final boolean | DEFAULT_COLLECT_DETAILED_STATISTICS
The default value for the |
| public static final Duration | DEFAULT_DURATION_BETWEEN_EVICTION_RUNS
The default value for the |
| public static final String | DEFAULT_EVICTION_POLICY_CLASS_NAME
The default value for the |
| public static final Duration | DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT
The default value for |
| public static final long | DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS
Deprecated
Use The default value for DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT.
evictorShutdownTimeout configuration attribute: .
|
| public static final boolean | DEFAULT_FAIRNESS
The default value for the |
| public static final boolean | DEFAULT_JMX_ENABLE
The default value for enabling JMX for pools created with a configuration instance: . |
| public static final String | DEFAULT_JMX_NAME_BASE
The default value for the base name to use to name JMX enabled pools created with a configuration instance. |
| public static final String | DEFAULT_JMX_NAME_PREFIX
The default value for the prefix used to name JMX enabled pools created with a configuration instance: . |
| public static final boolean | DEFAULT_LIFO
The default value for the |
| public static final Duration | DEFAULT_MAX_WAIT
The default value for the |
| public static final long | DEFAULT_MAX_WAIT_MILLIS
Deprecated
Use The default value for the DEFAULT_MAX_WAIT.
maxWait configuration attribute: .
|
| public static final Duration | DEFAULT_MIN_EVICTABLE_IDLE_DURATION
The default value for the |
| public static final Duration | DEFAULT_MIN_EVICTABLE_IDLE_TIME
Deprecated
Use The default value for the DEFAULT_MIN_EVICTABLE_IDLE_DURATION.
minEvictableIdleDuration configuration attribute.
|
| public static final long | DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated
Use The default value for the DEFAULT_MIN_EVICTABLE_IDLE_TIME.
minEvictableIdleDuration configuration attribute: .
|
| public static final int | DEFAULT_NUM_TESTS_PER_EVICTION_RUN
The default value for the |
| public static final Duration | DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION
The default value for the |
| public static final Duration | DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME
Deprecated
Use The default value for the DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION.
softMinEvictableIdleTime configuration attribute.
|
| public static final long | DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Deprecated
Use The default value for the DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME.
softMinEvictableIdleTime configuration attribute: .
|
| public static final boolean | DEFAULT_TEST_ON_BORROW
The default value for the |
| public static final boolean | DEFAULT_TEST_ON_CREATE
The default value for the |
| public static final boolean | DEFAULT_TEST_ON_RETURN
The default value for the |
| public static final boolean | DEFAULT_TEST_WHILE_IDLE
The default value for the |
| public static final Duration | DEFAULT_TIME_BETWEEN_EVICTION_RUNS
Deprecated
Use The default value for the DEFAULT_DURATION_BETWEEN_EVICTION_RUNS.
timeBetweenEvictionRuns configuration attribute.
|
| public static final long | DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
Deprecated
Use The default value for the DEFAULT_TIME_BETWEEN_EVICTION_RUNS.
timeBetweenEvictionRuns configuration attribute: .
|
| private Duration | |
| private EvictionPolicy | |
| private String | |
| private Duration | |
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private boolean | |
| private Duration | |
| private Duration | |
| private int | |
| private Duration | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: The current setting ofblockWhenExhausted for this configuration instanceGets the value for the |
| public boolean | Returns: true if detailed statistics collection is enabled,
false if disabled for improved performance.Gets the value for the |
| public Duration | Returns: The current setting oftimeBetweenEvictionRuns for this configuration instanceGets the value for the |
| public EvictionPolicy | Returns: The current setting ofevictionPolicyClass for this configuration instanceGets the value for the |
| public String | Returns: The current setting ofevictionPolicyClassName for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting ofevictorShutdownTimeout for this configuration instance
Deprecated
Use
getEvictorShutdownTimeoutDuration().
Gets the value for the |
| public Duration | Returns: The current setting ofevictorShutdownTimeout for this configuration instanceGets the value for the |
| public long | Returns: The current setting ofevictorShutdownTimeout for this configuration instance
Deprecated
Use
getEvictorShutdownTimeout().
Gets the value for the |
| public boolean | Returns: The current setting offairness for this configuration instanceGets the value for the |
| public boolean | Returns: The current setting ofjmxEnabled for this configuration instanceGets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance. |
| public String | Returns: The current setting ofjmxNameBase for this configuration instanceGets 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. |
| public String | Returns: The current setting ofjmxNamePrefix for this configuration instanceGets 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. |
| public boolean | Returns: The current setting oflifo for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting ofmaxWait for this configuration instanceGets the value for the |
| public long | Returns: The current setting ofmaxWait for this configuration instance
Deprecated
Use
getMaxWaitDuration().
Gets the value for the |
| public Duration | Returns: The current setting ofminEvictableIdleTime for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting ofminEvictableIdleTime for this configuration instance
Deprecated
Use
getMinEvictableIdleDuration().
Gets the value for the |
| public long | Returns: The current setting ofminEvictableIdleTime for this configuration instance
Deprecated
Use
getMinEvictableIdleTime().
Gets the value for the |
| public int | Returns: The current setting ofnumTestsPerEvictionRun for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting ofsoftMinEvictableIdleTime for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting ofsoftMinEvictableIdleTime for this configuration instance
Deprecated
Use
getSoftMinEvictableIdleDuration().
Gets the value for the |
| public long | Returns: The current setting ofsoftMinEvictableIdleTime for this configuration instance
Deprecated
Use
getSoftMinEvictableIdleDuration().
Gets the value for the |
| public boolean | Returns: The current setting oftestOnBorrow for this configuration instanceGets the value for the |
| public boolean | Returns: The current setting oftestOnCreate for this configuration instanceGets the value for the |
| public boolean | Returns: The current setting oftestOnReturn for this configuration instanceGets the value for the |
| public boolean | Returns: The current setting oftestWhileIdle for this configuration instanceGets the value for the |
| public Duration | Returns: The current setting oftimeBetweenEvictionRuns for this configuration instance
Deprecated
Use
getDurationBetweenEvictionRuns().
Gets the value for the |
| public long | Returns: The current setting oftimeBetweenEvictionRuns for this configuration instance
Deprecated
Use
getDurationBetweenEvictionRuns().
Gets the value for the |
| public void | setBlockWhenExhausted(final boolean
The new setting of blockWhenExhausted)blockWhenExhausted for this configuration instanceSets the value for the |
| public void | setCollectDetailedStatistics(final boolean
The new setting of collectDetailedStatistics)collectDetailedStatistics
for this configuration instance.Sets the value for the |
| public void | setEvictionPolicy(final EvictionPolicy<T>
The new setting of evictionPolicy)evictionPolicyClass for this configuration instanceSets the value for the |
| public void | setEvictionPolicyClassName(final String
The new setting of evictionPolicyClassName)evictionPolicyClassName for this configuration instanceSets the value for the |
| public void | setEvictorShutdownTimeout(final Duration
The new setting of evictorShutdownTimeoutDuration)evictorShutdownTimeout for this configuration instanceSets the value for the |
| public void | setEvictorShutdownTimeoutMillis(final Duration
The new setting of evictorShutdownTimeout)evictorShutdownTimeout for this configuration instance
Deprecated
Use
setEvictorShutdownTimeout(Duration).
Sets the value for the |
| public void | setEvictorShutdownTimeoutMillis(final long
The new setting of evictorShutdownTimeoutMillis)evictorShutdownTimeout for this configuration instance
Deprecated
Use
setEvictorShutdownTimeout(Duration).
Sets the value for the |
| public void | setFairness(final boolean
The new setting of fairness)fairness for this configuration instanceSets the value for the |
| public void | setJmxEnabled(final boolean
The new setting of jmxEnabled)jmxEnabled for this configuration instanceSets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance. |
| public void | setJmxNameBase(final String
The new setting of jmxNameBase)jmxNameBase for this configuration instanceSets 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. |
| public void | setJmxNamePrefix(final String
The new setting of jmxNamePrefix)jmxNamePrefix for this configuration instanceSets 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. |
| public void | setLifo(final boolean
The new setting of lifo)lifo for this configuration instanceSets the value for the |
| public void | setMaxWait(final Duration
The new setting of maxWaitDuration)maxWaitDuration for this configuration instanceSets the value for the |
| public void | setMaxWaitMillis(final long
The new setting of maxWaitMillis)maxWaitMillis for this configuration instance
Deprecated
Use
setMaxWait(Duration).
Sets the value for the |
| public void | setMinEvictableIdleDuration(final Duration
The new setting of minEvictableIdleTime)minEvictableIdleTime for this configuration instanceSets the value for the |
| public void | setMinEvictableIdleTime(final Duration
The new setting of minEvictableIdleTime)minEvictableIdleTime for this configuration instance
Deprecated
Use
setMinEvictableIdleDuration(Duration).
Sets the value for the |
| public void | setMinEvictableIdleTimeMillis(final long
The new setting of minEvictableIdleTimeMillis)minEvictableIdleTime for this configuration instance
Deprecated
Use
setMinEvictableIdleDuration(Duration).
Sets the value for the |
| public void | setNumTestsPerEvictionRun(final int
The new setting of numTestsPerEvictionRun)numTestsPerEvictionRun for this configuration instanceSets the value for the |
| public void | setSoftMinEvictableIdleDuration(final Duration
The new setting of softMinEvictableIdleTime)softMinEvictableIdleTime for this configuration instanceSets the value for the |
| public void | setSoftMinEvictableIdleTime(final Duration
The new setting of softMinEvictableIdleTime)softMinEvictableIdleTime for this configuration instance
Deprecated
Use
setSoftMinEvictableIdleDuration(Duration).
Sets the value for the |
| public void | setSoftMinEvictableIdleTimeMillis(final long
The new setting of softMinEvictableIdleTimeMillis)softMinEvictableIdleTime for this configuration instance
Deprecated
Use
setSoftMinEvictableIdleDuration(Duration).
Sets the value for the |
| public void | setTestOnBorrow(final boolean
The new setting of testOnBorrow)testOnBorrow for this configuration instanceSets the value for the |
| public void | setTestOnCreate(final boolean
The new setting of testOnCreate)testOnCreate for this configuration instanceSets the value for the |
| public void | setTestOnReturn(final boolean
The new setting of testOnReturn)testOnReturn for this configuration instanceSets the value for the |
| public void | setTestWhileIdle(final boolean
The new setting of testWhileIdle)testWhileIdle for this configuration instanceSets the value for the |
| public void | setTimeBetweenEvictionRuns(final Duration
The new setting of timeBetweenEvictionRuns)timeBetweenEvictionRuns for this configuration instanceSets the value for the |
| public void | setTimeBetweenEvictionRunsMillis(final long
The new setting of timeBetweenEvictionRunsMillis)timeBetweenEvictionRuns for this configuration instance
Deprecated
Use
setTimeBetweenEvictionRuns(Duration).
Sets the value for the |
| protected void | toStringAppendFields(final StringBuilder builder)
Overrides org. Used by sub-classes to include the fields defined by the sub-class in the
|