This class is not thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final boolean | DEFAULT_BLOCK_WHEN_EXHAUSTED
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
The default value for |
| 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
The default value for the |
| public static final Duration | DEFAULT_MIN_EVICTABLE_IDLE_DURATION
The default value for the |
| public static final Duration | DEFAULT_MIN_EVICTABLE_IDLE_TIME
The default value for the |
| public static final long | DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
The default value for the |
| 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
The default value for the |
| public static final long | DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
The default value for the |
| 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
The default value for the |
| public static final long | DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
The default value for the |
| 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 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
Gets the value for the getEvictorShutdownTimeoutDuration().
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
|
| 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
Gets the value for the getEvictorShutdownTimeout().
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
|
| 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
Gets the value for the getMaxWaitDuration().
maxWait configuration attribute for pools created with this configuration instance.
|
| 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
Gets the value for the getMinEvictableIdleDuration().
minEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| public long | Returns: The current setting ofminEvictableIdleTime for this configuration instance
Deprecated
Use
Gets the value for the getMinEvictableIdleTime().
minEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| 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
Gets the value for the getSoftMinEvictableIdleDuration().
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| public long | Returns: The current setting ofsoftMinEvictableIdleTime for this configuration instance
Deprecated
Use
Gets the value for the getSoftMinEvictableIdleDuration().
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| 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
Gets the value for the getDurationBetweenEvictionRuns().
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.
|
| public long | Returns: The current setting oftimeBetweenEvictionRuns for this configuration instance
Deprecated
Use
Gets the value for the getDurationBetweenEvictionRuns().
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.
|
| public void | setBlockWhenExhausted(final boolean
The new setting of blockWhenExhausted)blockWhenExhausted for this configuration instanceSets 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
Sets the value for the setEvictorShutdownTimeout(Duration).
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
|
| public void | setEvictorShutdownTimeoutMillis(final long
The new setting of evictorShutdownTimeoutMillis)evictorShutdownTimeout for this configuration instance
Deprecated
Use
Sets the value for the setEvictorShutdownTimeout(Duration).
evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
|
| 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
Sets the value for the setMaxWait(Duration).
maxWait configuration attribute for pools created with this configuration instance.
|
| 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
Sets the value for the setMinEvictableIdleDuration(Duration).
minEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| public void | setMinEvictableIdleTimeMillis(final long
The new setting of minEvictableIdleTimeMillis)minEvictableIdleTime for this configuration instance
Deprecated
Use
Sets the value for the setMinEvictableIdleDuration(Duration).
minEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| 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
Sets the value for the setSoftMinEvictableIdleDuration(Duration).
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| public void | setSoftMinEvictableIdleTimeMillis(final long
The new setting of softMinEvictableIdleTimeMillis)softMinEvictableIdleTime for this configuration instance
Deprecated
Use
Sets the value for the setSoftMinEvictableIdleDuration(Duration).
softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
|
| 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
Sets the value for the setTimeBetweenEvictionRuns(Duration).
timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.
|
| protected void | toStringAppendFields(final StringBuilder
Field names and values are appended to this object builder)Overrides org. toString() output.
|