Modified:
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.java.html
==============================================================================
---
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.java.html
(original)
+++
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.java.html
Sat Feb 8 20:08:04 2025
@@ -30,7 +30,7 @@ import org.apache.commons.pool2.BaseObje
* @param <T> Type of element pooled.
* @since 2.0
*/
-<span class="fc" id="L33">public abstract class BaseObjectPoolConfig<T>
extends BaseObject implements Cloneable {</span>
+public abstract class BaseObjectPoolConfig<T> extends BaseObject
implements Cloneable {
/**
* The default value for the {@code lifo} configuration attribute:
{@value}.
@@ -292,6 +292,13 @@ import org.apache.commons.pool2.BaseObje
<span class="fc" id="L292"> private String jmxNameBase =
DEFAULT_JMX_NAME_BASE;</span>
/**
+ * Constructs a new instance.
+ */
+<span class="fc" id="L297"> public BaseObjectPoolConfig() {</span>
+ // empty
+<span class="fc" id="L299"> }</span>
+
+ /**
* Gets the value for the {@code blockWhenExhausted} configuration
attribute for pools created with this configuration instance.
*
* @return The current setting of {@code blockWhenExhausted} for this
configuration instance
@@ -299,7 +306,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getBlockWhenExhausted()
*/
public boolean getBlockWhenExhausted() {
-<span class="fc" id="L302"> return blockWhenExhausted;</span>
+<span class="fc" id="L309"> return blockWhenExhausted;</span>
}
/**
@@ -311,7 +318,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public Duration getDurationBetweenEvictionRuns() {
-<span class="fc" id="L314"> return durationBetweenEvictionRuns;</span>
+<span class="fc" id="L321"> return durationBetweenEvictionRuns;</span>
}
/**
@@ -323,7 +330,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.6.0
*/
public EvictionPolicy<T> getEvictionPolicy() {
-<span class="fc" id="L326"> return evictionPolicy;</span>
+<span class="fc" id="L333"> return evictionPolicy;</span>
}
/**
@@ -334,7 +341,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getEvictionPolicyClassName()
*/
public String getEvictionPolicyClassName() {
-<span class="fc" id="L337"> return evictionPolicyClassName;</span>
+<span class="fc" id="L344"> return evictionPolicyClassName;</span>
}
/**
@@ -348,7 +355,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public Duration getEvictorShutdownTimeout() {
-<span class="fc" id="L351"> return
evictorShutdownTimeoutDuration;</span>
+<span class="fc" id="L358"> return
evictorShutdownTimeoutDuration;</span>
}
/**
@@ -360,7 +367,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public Duration getEvictorShutdownTimeoutDuration() {
-<span class="fc" id="L363"> return
evictorShutdownTimeoutDuration;</span>
+<span class="fc" id="L370"> return
evictorShutdownTimeoutDuration;</span>
}
/**
@@ -373,7 +380,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public long getEvictorShutdownTimeoutMillis() {
-<span class="fc" id="L376"> return
evictorShutdownTimeoutDuration.toMillis();</span>
+<span class="fc" id="L383"> return
evictorShutdownTimeoutDuration.toMillis();</span>
}
/**
@@ -384,7 +391,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getFairness()
*/
public boolean getFairness() {
-<span class="fc" id="L387"> return fairness;</span>
+<span class="fc" id="L394"> return fairness;</span>
}
/**
@@ -393,7 +400,7 @@ import org.apache.commons.pool2.BaseObje
* @return The current setting of {@code jmxEnabled} for this
configuration instance
*/
public boolean getJmxEnabled() {
-<span class="fc" id="L396"> return jmxEnabled;</span>
+<span class="fc" id="L403"> return jmxEnabled;</span>
}
/**
@@ -403,7 +410,7 @@ import org.apache.commons.pool2.BaseObje
* @return The current setting of {@code jmxNameBase} for this
configuration instance
*/
public String getJmxNameBase() {
-<span class="fc" id="L406"> return jmxNameBase;</span>
+<span class="fc" id="L413"> return jmxNameBase;</span>
}
/**
@@ -412,7 +419,7 @@ import org.apache.commons.pool2.BaseObje
* @return The current setting of {@code jmxNamePrefix} for this
configuration instance
*/
public String getJmxNamePrefix() {
-<span class="fc" id="L415"> return jmxNamePrefix;</span>
+<span class="fc" id="L422"> return jmxNamePrefix;</span>
}
/**
@@ -423,7 +430,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getLifo()
*/
public boolean getLifo() {
-<span class="fc" id="L426"> return lifo;</span>
+<span class="fc" id="L433"> return lifo;</span>
}
/**
@@ -435,7 +442,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public Duration getMaxWaitDuration() {
-<span class="fc" id="L438"> return maxWaitDuration;</span>
+<span class="fc" id="L445"> return maxWaitDuration;</span>
}
/**
@@ -448,7 +455,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public long getMaxWaitMillis() {
-<span class="fc" id="L451"> return maxWaitDuration.toMillis();</span>
+<span class="fc" id="L458"> return maxWaitDuration.toMillis();</span>
}
/**
@@ -460,7 +467,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public Duration getMinEvictableIdleDuration() {
-<span class="fc" id="L463"> return minEvictableIdleDuration;</span>
+<span class="fc" id="L470"> return minEvictableIdleDuration;</span>
}
/**
@@ -474,7 +481,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public Duration getMinEvictableIdleTime() {
-<span class="fc" id="L477"> return minEvictableIdleDuration;</span>
+<span class="fc" id="L484"> return minEvictableIdleDuration;</span>
}
/**
@@ -487,7 +494,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public long getMinEvictableIdleTimeMillis() {
-<span class="fc" id="L490"> return
minEvictableIdleDuration.toMillis();</span>
+<span class="fc" id="L497"> return
minEvictableIdleDuration.toMillis();</span>
}
/**
@@ -498,7 +505,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
*/
public int getNumTestsPerEvictionRun() {
-<span class="fc" id="L501"> return numTestsPerEvictionRun;</span>
+<span class="fc" id="L508"> return numTestsPerEvictionRun;</span>
}
/**
@@ -510,7 +517,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public Duration getSoftMinEvictableIdleDuration() {
-<span class="fc" id="L513"> return softMinEvictableIdleDuration;</span>
+<span class="fc" id="L520"> return softMinEvictableIdleDuration;</span>
}
/**
@@ -524,7 +531,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public Duration getSoftMinEvictableIdleTime() {
-<span class="fc" id="L527"> return softMinEvictableIdleDuration;</span>
+<span class="fc" id="L534"> return softMinEvictableIdleDuration;</span>
}
/**
@@ -537,7 +544,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public long getSoftMinEvictableIdleTimeMillis() {
-<span class="fc" id="L540"> return
softMinEvictableIdleDuration.toMillis();</span>
+<span class="fc" id="L547"> return
softMinEvictableIdleDuration.toMillis();</span>
}
/**
@@ -548,7 +555,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestOnBorrow()
*/
public boolean getTestOnBorrow() {
-<span class="fc" id="L551"> return testOnBorrow;</span>
+<span class="fc" id="L558"> return testOnBorrow;</span>
}
/**
@@ -560,7 +567,7 @@ import org.apache.commons.pool2.BaseObje
* @since 2.2
*/
public boolean getTestOnCreate() {
-<span class="fc" id="L563"> return testOnCreate;</span>
+<span class="fc" id="L570"> return testOnCreate;</span>
}
/**
@@ -571,7 +578,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestOnReturn()
*/
public boolean getTestOnReturn() {
-<span class="fc" id="L574"> return testOnReturn;</span>
+<span class="fc" id="L581"> return testOnReturn;</span>
}
/**
@@ -582,7 +589,7 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestWhileIdle()
*/
public boolean getTestWhileIdle() {
-<span class="fc" id="L585"> return testWhileIdle;</span>
+<span class="fc" id="L592"> return testWhileIdle;</span>
}
/**
@@ -596,7 +603,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public Duration getTimeBetweenEvictionRuns() {
-<span class="fc" id="L599"> return durationBetweenEvictionRuns;</span>
+<span class="fc" id="L606"> return durationBetweenEvictionRuns;</span>
}
/**
@@ -609,7 +616,7 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public long getTimeBetweenEvictionRunsMillis() {
-<span class="fc" id="L612"> return
durationBetweenEvictionRuns.toMillis();</span>
+<span class="fc" id="L619"> return
durationBetweenEvictionRuns.toMillis();</span>
}
/**
@@ -620,8 +627,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getBlockWhenExhausted()
*/
public void setBlockWhenExhausted(final boolean blockWhenExhausted) {
-<span class="fc" id="L623"> this.blockWhenExhausted =
blockWhenExhausted;</span>
-<span class="fc" id="L624"> }</span>
+<span class="fc" id="L630"> this.blockWhenExhausted =
blockWhenExhausted;</span>
+<span class="fc" id="L631"> }</span>
/**
* Sets the value for the {@code evictionPolicyClass} configuration
attribute for pools created with this configuration instance.
@@ -632,8 +639,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.6.0
*/
public void setEvictionPolicy(final EvictionPolicy<T>
evictionPolicy) {
-<span class="fc" id="L635"> this.evictionPolicy = evictionPolicy;</span>
-<span class="fc" id="L636"> }</span>
+<span class="fc" id="L642"> this.evictionPolicy = evictionPolicy;</span>
+<span class="fc" id="L643"> }</span>
/**
* Sets the value for the {@code evictionPolicyClassName} configuration
attribute for pools created with this configuration instance.
@@ -643,8 +650,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getEvictionPolicyClassName()
*/
public void setEvictionPolicyClassName(final String
evictionPolicyClassName) {
-<span class="fc" id="L646"> this.evictionPolicyClassName =
evictionPolicyClassName;</span>
-<span class="fc" id="L647"> }</span>
+<span class="fc" id="L653"> this.evictionPolicyClassName =
evictionPolicyClassName;</span>
+<span class="fc" id="L654"> }</span>
/**
* Sets the value for the {@code evictorShutdownTimeout} configuration
attribute for pools created with this configuration instance.
@@ -655,8 +662,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public void setEvictorShutdownTimeout(final Duration
evictorShutdownTimeoutDuration) {
-<span class="fc" id="L658"> this.evictorShutdownTimeoutDuration =
PoolImplUtils.nonNull(evictorShutdownTimeoutDuration,
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT);</span>
-<span class="fc" id="L659"> }</span>
+<span class="fc" id="L665"> this.evictorShutdownTimeoutDuration =
PoolImplUtils.nonNull(evictorShutdownTimeoutDuration,
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT);</span>
+<span class="fc" id="L666"> }</span>
/**
* Sets the value for the {@code evictorShutdownTimeout} configuration
attribute for pools created with this configuration instance.
@@ -669,8 +676,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setEvictorShutdownTimeoutMillis(final Duration
evictorShutdownTimeout) {
-<span class="nc" id="L672">
setEvictorShutdownTimeout(evictorShutdownTimeout);</span>
-<span class="nc" id="L673"> }</span>
+<span class="nc" id="L679">
setEvictorShutdownTimeout(evictorShutdownTimeout);</span>
+<span class="nc" id="L680"> }</span>
/**
* Sets the value for the {@code evictorShutdownTimeout} configuration
attribute for pools created with this configuration instance.
@@ -682,8 +689,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setEvictorShutdownTimeoutMillis(final long
evictorShutdownTimeoutMillis) {
-<span class="fc" id="L685">
setEvictorShutdownTimeout(Duration.ofMillis(evictorShutdownTimeoutMillis));</span>
-<span class="fc" id="L686"> }</span>
+<span class="fc" id="L692">
setEvictorShutdownTimeout(Duration.ofMillis(evictorShutdownTimeoutMillis));</span>
+<span class="fc" id="L693"> }</span>
/**
* Sets the value for the {@code fairness} configuration attribute for
pools created with this configuration instance.
@@ -693,8 +700,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getFairness()
*/
public void setFairness(final boolean fairness) {
-<span class="fc" id="L696"> this.fairness = fairness;</span>
-<span class="fc" id="L697"> }</span>
+<span class="fc" id="L703"> this.fairness = fairness;</span>
+<span class="fc" id="L704"> }</span>
/**
* Sets the value of the flag that determines if JMX will be enabled for
pools created with this configuration instance.
@@ -702,8 +709,8 @@ import org.apache.commons.pool2.BaseObje
* @param jmxEnabled The new setting of {@code jmxEnabled} for this
configuration instance
*/
public void setJmxEnabled(final boolean jmxEnabled) {
-<span class="fc" id="L705"> this.jmxEnabled = jmxEnabled;</span>
-<span class="fc" id="L706"> }</span>
+<span class="fc" id="L712"> this.jmxEnabled = jmxEnabled;</span>
+<span class="fc" id="L713"> }</span>
/**
* 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
@@ -712,8 +719,8 @@ import org.apache.commons.pool2.BaseObje
* @param jmxNameBase The new setting of {@code jmxNameBase} for this
configuration instance
*/
public void setJmxNameBase(final String jmxNameBase) {
-<span class="fc" id="L715"> this.jmxNameBase = jmxNameBase;</span>
-<span class="fc" id="L716"> }</span>
+<span class="fc" id="L722"> this.jmxNameBase = jmxNameBase;</span>
+<span class="fc" id="L723"> }</span>
/**
* 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.
@@ -721,8 +728,8 @@ import org.apache.commons.pool2.BaseObje
* @param jmxNamePrefix The new setting of {@code jmxNamePrefix} for this
configuration instance
*/
public void setJmxNamePrefix(final String jmxNamePrefix) {
-<span class="fc" id="L724"> this.jmxNamePrefix = jmxNamePrefix;</span>
-<span class="fc" id="L725"> }</span>
+<span class="fc" id="L731"> this.jmxNamePrefix = jmxNamePrefix;</span>
+<span class="fc" id="L732"> }</span>
/**
* Sets the value for the {@code lifo} configuration attribute for pools
created with this configuration instance.
@@ -732,8 +739,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getLifo()
*/
public void setLifo(final boolean lifo) {
-<span class="fc" id="L735"> this.lifo = lifo;</span>
-<span class="fc" id="L736"> }</span>
+<span class="fc" id="L742"> this.lifo = lifo;</span>
+<span class="fc" id="L743"> }</span>
/**
* Sets the value for the {@code maxWait} configuration attribute for
pools created with this configuration instance.
@@ -744,8 +751,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.11.0
*/
public void setMaxWait(final Duration maxWaitDuration) {
-<span class="fc" id="L747"> this.maxWaitDuration =
PoolImplUtils.nonNull(maxWaitDuration, DEFAULT_MAX_WAIT);</span>
-<span class="fc" id="L748"> }</span>
+<span class="fc" id="L754"> this.maxWaitDuration =
PoolImplUtils.nonNull(maxWaitDuration, DEFAULT_MAX_WAIT);</span>
+<span class="fc" id="L755"> }</span>
/**
* Sets the value for the {@code maxWait} configuration attribute for
pools created with this configuration instance.
@@ -757,8 +764,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setMaxWaitMillis(final long maxWaitMillis) {
-<span class="fc" id="L760">
setMaxWait(Duration.ofMillis(maxWaitMillis));</span>
-<span class="fc" id="L761"> }</span>
+<span class="fc" id="L767">
setMaxWait(Duration.ofMillis(maxWaitMillis));</span>
+<span class="fc" id="L768"> }</span>
/**
* Sets the value for the {@code minEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -769,8 +776,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.12.0
*/
public void setMinEvictableIdleDuration(final Duration
minEvictableIdleTime) {
-<span class="fc" id="L772"> this.minEvictableIdleDuration =
PoolImplUtils.nonNull(minEvictableIdleTime,
DEFAULT_MIN_EVICTABLE_IDLE_TIME);</span>
-<span class="fc" id="L773"> }</span>
+<span class="fc" id="L779"> this.minEvictableIdleDuration =
PoolImplUtils.nonNull(minEvictableIdleTime,
DEFAULT_MIN_EVICTABLE_IDLE_TIME);</span>
+<span class="fc" id="L780"> }</span>
/**
* Sets the value for the {@code minEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -783,8 +790,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setMinEvictableIdleTime(final Duration minEvictableIdleTime) {
-<span class="fc" id="L786"> this.minEvictableIdleDuration =
PoolImplUtils.nonNull(minEvictableIdleTime,
DEFAULT_MIN_EVICTABLE_IDLE_TIME);</span>
-<span class="fc" id="L787"> }</span>
+<span class="fc" id="L793"> this.minEvictableIdleDuration =
PoolImplUtils.nonNull(minEvictableIdleTime,
DEFAULT_MIN_EVICTABLE_IDLE_TIME);</span>
+<span class="fc" id="L794"> }</span>
/**
* Sets the value for the {@code minEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -796,8 +803,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setMinEvictableIdleTimeMillis(final long
minEvictableIdleTimeMillis) {
-<span class="fc" id="L799"> this.minEvictableIdleDuration =
Duration.ofMillis(minEvictableIdleTimeMillis);</span>
-<span class="fc" id="L800"> }</span>
+<span class="fc" id="L806"> this.minEvictableIdleDuration =
Duration.ofMillis(minEvictableIdleTimeMillis);</span>
+<span class="fc" id="L807"> }</span>
/**
* Sets the value for the {@code numTestsPerEvictionRun} configuration
attribute for pools created with this configuration instance.
@@ -807,8 +814,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
*/
public void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) {
-<span class="fc" id="L810"> this.numTestsPerEvictionRun =
numTestsPerEvictionRun;</span>
-<span class="fc" id="L811"> }</span>
+<span class="fc" id="L817"> this.numTestsPerEvictionRun =
numTestsPerEvictionRun;</span>
+<span class="fc" id="L818"> }</span>
/**
* Sets the value for the {@code softMinEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -819,8 +826,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.12.0
*/
public void setSoftMinEvictableIdleDuration(final Duration
softMinEvictableIdleTime) {
-<span class="fc" id="L822"> this.softMinEvictableIdleDuration =
PoolImplUtils.nonNull(softMinEvictableIdleTime,
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME);</span>
-<span class="fc" id="L823"> }</span>
+<span class="fc" id="L829"> this.softMinEvictableIdleDuration =
PoolImplUtils.nonNull(softMinEvictableIdleTime,
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME);</span>
+<span class="fc" id="L830"> }</span>
/**
* Sets the value for the {@code softMinEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -833,8 +840,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setSoftMinEvictableIdleTime(final Duration
softMinEvictableIdleTime) {
-<span class="fc" id="L836"> this.softMinEvictableIdleDuration =
PoolImplUtils.nonNull(softMinEvictableIdleTime,
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME);</span>
-<span class="fc" id="L837"> }</span>
+<span class="fc" id="L843"> this.softMinEvictableIdleDuration =
PoolImplUtils.nonNull(softMinEvictableIdleTime,
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME);</span>
+<span class="fc" id="L844"> }</span>
/**
* Sets the value for the {@code softMinEvictableIdleTime} configuration
attribute for pools created with this configuration instance.
@@ -846,8 +853,8 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setSoftMinEvictableIdleTimeMillis(final long
softMinEvictableIdleTimeMillis) {
-<span class="fc" id="L849">
setSoftMinEvictableIdleTime(Duration.ofMillis(softMinEvictableIdleTimeMillis));</span>
-<span class="fc" id="L850"> }</span>
+<span class="fc" id="L856">
setSoftMinEvictableIdleTime(Duration.ofMillis(softMinEvictableIdleTimeMillis));</span>
+<span class="fc" id="L857"> }</span>
/**
* Sets the value for the {@code testOnBorrow} configuration attribute for
pools created with this configuration instance.
@@ -857,8 +864,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestOnBorrow()
*/
public void setTestOnBorrow(final boolean testOnBorrow) {
-<span class="fc" id="L860"> this.testOnBorrow = testOnBorrow;</span>
-<span class="fc" id="L861"> }</span>
+<span class="fc" id="L867"> this.testOnBorrow = testOnBorrow;</span>
+<span class="fc" id="L868"> }</span>
/**
* Sets the value for the {@code testOnCreate} configuration attribute for
pools created with this configuration instance.
@@ -869,8 +876,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.2
*/
public void setTestOnCreate(final boolean testOnCreate) {
-<span class="fc" id="L872"> this.testOnCreate = testOnCreate;</span>
-<span class="fc" id="L873"> }</span>
+<span class="fc" id="L879"> this.testOnCreate = testOnCreate;</span>
+<span class="fc" id="L880"> }</span>
/**
* Sets the value for the {@code testOnReturn} configuration attribute for
pools created with this configuration instance.
@@ -880,8 +887,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestOnReturn()
*/
public void setTestOnReturn(final boolean testOnReturn) {
-<span class="fc" id="L883"> this.testOnReturn = testOnReturn;</span>
-<span class="fc" id="L884"> }</span>
+<span class="fc" id="L890"> this.testOnReturn = testOnReturn;</span>
+<span class="fc" id="L891"> }</span>
/**
* Sets the value for the {@code testWhileIdle} configuration attribute
for pools created with this configuration instance.
@@ -891,8 +898,8 @@ import org.apache.commons.pool2.BaseObje
* @see GenericKeyedObjectPool#getTestWhileIdle()
*/
public void setTestWhileIdle(final boolean testWhileIdle) {
-<span class="fc" id="L894"> this.testWhileIdle = testWhileIdle;</span>
-<span class="fc" id="L895"> }</span>
+<span class="fc" id="L901"> this.testWhileIdle = testWhileIdle;</span>
+<span class="fc" id="L902"> }</span>
/**
* Sets the value for the {@code timeBetweenEvictionRuns} configuration
attribute for pools created with this configuration instance.
@@ -903,8 +910,8 @@ import org.apache.commons.pool2.BaseObje
* @since 2.10.0
*/
public void setTimeBetweenEvictionRuns(final Duration
timeBetweenEvictionRuns) {
-<span class="fc" id="L906"> this.durationBetweenEvictionRuns =
PoolImplUtils.nonNull(timeBetweenEvictionRuns,
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS);</span>
-<span class="fc" id="L907"> }</span>
+<span class="fc" id="L913"> this.durationBetweenEvictionRuns =
PoolImplUtils.nonNull(timeBetweenEvictionRuns,
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS);</span>
+<span class="fc" id="L914"> }</span>
/**
* Sets the value for the {@code timeBetweenEvictionRuns} configuration
attribute for pools created with this configuration instance.
@@ -916,43 +923,43 @@ import org.apache.commons.pool2.BaseObje
*/
@Deprecated
public void setTimeBetweenEvictionRunsMillis(final long
timeBetweenEvictionRunsMillis) {
-<span class="fc" id="L919">
setTimeBetweenEvictionRuns(Duration.ofMillis(timeBetweenEvictionRunsMillis));</span>
-<span class="fc" id="L920"> }</span>
+<span class="fc" id="L926">
setTimeBetweenEvictionRuns(Duration.ofMillis(timeBetweenEvictionRunsMillis));</span>
+<span class="fc" id="L927"> }</span>
@Override
protected void toStringAppendFields(final StringBuilder builder) {
-<span class="fc" id="L924"> builder.append("lifo=");</span>
-<span class="fc" id="L925"> builder.append(lifo);</span>
-<span class="fc" id="L926"> builder.append(",
fairness=");</span>
-<span class="fc" id="L927"> builder.append(fairness);</span>
-<span class="fc" id="L928"> builder.append(",
maxWaitDuration=");</span>
-<span class="fc" id="L929"> builder.append(maxWaitDuration);</span>
-<span class="fc" id="L930"> builder.append(",
minEvictableIdleTime=");</span>
-<span class="fc" id="L931">
builder.append(minEvictableIdleDuration);</span>
-<span class="fc" id="L932"> builder.append(",
softMinEvictableIdleTime=");</span>
-<span class="fc" id="L933">
builder.append(softMinEvictableIdleDuration);</span>
-<span class="fc" id="L934"> builder.append(",
numTestsPerEvictionRun=");</span>
-<span class="fc" id="L935">
builder.append(numTestsPerEvictionRun);</span>
-<span class="fc" id="L936"> builder.append(",
evictionPolicyClassName=");</span>
-<span class="fc" id="L937">
builder.append(evictionPolicyClassName);</span>
-<span class="fc" id="L938"> builder.append(",
testOnCreate=");</span>
-<span class="fc" id="L939"> builder.append(testOnCreate);</span>
-<span class="fc" id="L940"> builder.append(",
testOnBorrow=");</span>
-<span class="fc" id="L941"> builder.append(testOnBorrow);</span>
-<span class="fc" id="L942"> builder.append(",
testOnReturn=");</span>
-<span class="fc" id="L943"> builder.append(testOnReturn);</span>
-<span class="fc" id="L944"> builder.append(",
testWhileIdle=");</span>
-<span class="fc" id="L945"> builder.append(testWhileIdle);</span>
-<span class="fc" id="L946"> builder.append(",
timeBetweenEvictionRuns=");</span>
-<span class="fc" id="L947">
builder.append(durationBetweenEvictionRuns);</span>
-<span class="fc" id="L948"> builder.append(",
blockWhenExhausted=");</span>
-<span class="fc" id="L949"> builder.append(blockWhenExhausted);</span>
-<span class="fc" id="L950"> builder.append(",
jmxEnabled=");</span>
-<span class="fc" id="L951"> builder.append(jmxEnabled);</span>
-<span class="fc" id="L952"> builder.append(",
jmxNamePrefix=");</span>
-<span class="fc" id="L953"> builder.append(jmxNamePrefix);</span>
-<span class="fc" id="L954"> builder.append(",
jmxNameBase=");</span>
-<span class="fc" id="L955"> builder.append(jmxNameBase);</span>
-<span class="fc" id="L956"> }</span>
+<span class="fc" id="L931"> builder.append("lifo=");</span>
+<span class="fc" id="L932"> builder.append(lifo);</span>
+<span class="fc" id="L933"> builder.append(",
fairness=");</span>
+<span class="fc" id="L934"> builder.append(fairness);</span>
+<span class="fc" id="L935"> builder.append(",
maxWaitDuration=");</span>
+<span class="fc" id="L936"> builder.append(maxWaitDuration);</span>
+<span class="fc" id="L937"> builder.append(",
minEvictableIdleTime=");</span>
+<span class="fc" id="L938">
builder.append(minEvictableIdleDuration);</span>
+<span class="fc" id="L939"> builder.append(",
softMinEvictableIdleTime=");</span>
+<span class="fc" id="L940">
builder.append(softMinEvictableIdleDuration);</span>
+<span class="fc" id="L941"> builder.append(",
numTestsPerEvictionRun=");</span>
+<span class="fc" id="L942">
builder.append(numTestsPerEvictionRun);</span>
+<span class="fc" id="L943"> builder.append(",
evictionPolicyClassName=");</span>
+<span class="fc" id="L944">
builder.append(evictionPolicyClassName);</span>
+<span class="fc" id="L945"> builder.append(",
testOnCreate=");</span>
+<span class="fc" id="L946"> builder.append(testOnCreate);</span>
+<span class="fc" id="L947"> builder.append(",
testOnBorrow=");</span>
+<span class="fc" id="L948"> builder.append(testOnBorrow);</span>
+<span class="fc" id="L949"> builder.append(",
testOnReturn=");</span>
+<span class="fc" id="L950"> builder.append(testOnReturn);</span>
+<span class="fc" id="L951"> builder.append(",
testWhileIdle=");</span>
+<span class="fc" id="L952"> builder.append(testWhileIdle);</span>
+<span class="fc" id="L953"> builder.append(",
timeBetweenEvictionRuns=");</span>
+<span class="fc" id="L954">
builder.append(durationBetweenEvictionRuns);</span>
+<span class="fc" id="L955"> builder.append(",
blockWhenExhausted=");</span>
+<span class="fc" id="L956"> builder.append(blockWhenExhausted);</span>
+<span class="fc" id="L957"> builder.append(",
jmxEnabled=");</span>
+<span class="fc" id="L958"> builder.append(jmxEnabled);</span>
+<span class="fc" id="L959"> builder.append(",
jmxNamePrefix=");</span>
+<span class="fc" id="L960"> builder.append(jmxNamePrefix);</span>
+<span class="fc" id="L961"> builder.append(",
jmxNameBase=");</span>
+<span class="fc" id="L962"> builder.append(jmxNameBase);</span>
+<span class="fc" id="L963"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a
href="http://www.jacoco.org/jacoco">JaCoCo</a>
0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.html
==============================================================================
---
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.html
(original)
+++
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.html
Sat Feb 8 20:08:04 2025
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta
http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link
rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link
rel="shortcut icon" href="../jacoco-resources/report.gif"
type="image/gif"/><title>DefaultEvictionPolicy</title><script
type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body
onload="initialSort(['breadcrumb'])"><div class="breadcrumb"
id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html"
class="el_session">Sessions</a></span><a href="../index.html"
class="el_report">Apache Commons Pool</a> > <a href="index.html"
class="el_package">org.apache.commons.pool2.impl</a> > <span
class="el_class">DefaultEvictionPolicy</span></div><h1>DefaultEvictionPolicy</h1><table
class="coverage" cellspacing=
"0" id="coveragetable"><thead><tr><td class="sortable" id="a"
onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b"
onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2"
id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d"
onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e"
onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g"
onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i"
onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k"
onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td
class="bar">0 of 23</td><td class="ctr2">100%</td><td class="bar">0 of
6</td><td class="ctr2">100%</td><td class="ctr1">0</td
><td class="ctr2">5</td><td class="ctr1">0</td><td class="ctr2">4</td><td
>class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td
>id="a1"><a href="DefaultEvictionPolicy.java.html#L48"
>class="el_method">evict(EvictionConfig, PooledObject, int)</a></td><td
>class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120"
>height="10" title="20" alt="20"/></td><td class="ctr2" id="c0">100%</td><td
>class="bar" id="d0"><img src="../jacoco-resources/greenbar.gif" width="120"
>height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">100%</td><td
>class="ctr1" id="f0">0</td><td class="ctr2" id="g0">4</td><td class="ctr1"
>id="h0">0</td><td class="ctr2" id="i0">3</td><td class="ctr1"
>id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a
>href="DefaultEvictionPolicy.java.html#L43"
>class="el_method">DefaultEvictionPolicy()</a></td><td class="bar"
>id="b1"><img src="../jacoco-resources/greenbar.gif" width="18" height="10"
>title="3" alt="3"/></td><td class="c
tr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2"
id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2"
id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td
class="ctr1" id="j1">0</td><td class="ctr2"
id="k1">1</td></tr></tbody></table><div class="footer"><span
class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a>
0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta
http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link
rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link
rel="shortcut icon" href="../jacoco-resources/report.gif"
type="image/gif"/><title>DefaultEvictionPolicy</title><script
type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body
onload="initialSort(['breadcrumb'])"><div class="breadcrumb"
id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html"
class="el_session">Sessions</a></span><a href="../index.html"
class="el_report">Apache Commons Pool</a> > <a href="index.html"
class="el_package">org.apache.commons.pool2.impl</a> > <span
class="el_class">DefaultEvictionPolicy</span></div><h1>DefaultEvictionPolicy</h1><table
class="coverage" cellspacing=
"0" id="coveragetable"><thead><tr><td class="sortable" id="a"
onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b"
onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2"
id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d"
onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e"
onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g"
onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i"
onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j"
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k"
onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td
class="bar">0 of 23</td><td class="ctr2">100%</td><td class="bar">0 of
6</td><td class="ctr2">100%</td><td class="ctr1">0</td
><td class="ctr2">5</td><td class="ctr1">0</td><td class="ctr2">5</td><td
>class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td
>id="a1"><a href="DefaultEvictionPolicy.java.html#L55"
>class="el_method">evict(EvictionConfig, PooledObject, int)</a></td><td
>class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120"
>height="10" title="20" alt="20"/></td><td class="ctr2" id="c0">100%</td><td
>class="bar" id="d0"><img src="../jacoco-resources/greenbar.gif" width="120"
>height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">100%</td><td
>class="ctr1" id="f0">0</td><td class="ctr2" id="g0">4</td><td class="ctr1"
>id="h0">0</td><td class="ctr2" id="i0">3</td><td class="ctr1"
>id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a
>href="DefaultEvictionPolicy.java.html#L48"
>class="el_method">DefaultEvictionPolicy()</a></td><td class="bar"
>id="b1"><img src="../jacoco-resources/greenbar.gif" width="18" height="10"
>title="3" alt="3"/></td><td class="c
tr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2"
id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2"
id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">2</td><td
class="ctr1" id="j1">0</td><td class="ctr2"
id="k1">1</td></tr></tbody></table><div class="footer"><span
class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a>
0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.java.html
==============================================================================
---
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.java.html
(original)
+++
websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.java.html
Sat Feb 8 20:08:04 2025
@@ -40,14 +40,21 @@ import org.apache.commons.pool2.PooledOb
* @param <T> the type of objects in the pool.
* @since 2.0
*/
-<span class="fc" id="L43">public class DefaultEvictionPolicy<T>
implements EvictionPolicy<T> {</span>
+public class DefaultEvictionPolicy<T> implements EvictionPolicy<T>
{
+
+ /**
+ * Constructs a new instance.
+ */
+<span class="fc" id="L48"> public DefaultEvictionPolicy() {</span>
+ // empty
+<span class="fc" id="L50"> }</span>
@Override
public boolean evict(final EvictionConfig config, final
PooledObject<T> underTest, final int idleCount) {
// @formatter:off
-<span class="fc bfc" id="L48" title="All 2 branches covered."> return
config.getIdleSoftEvictDuration().compareTo(underTest.getIdleDuration()) < 0
&&</span>
-<span class="fc bfc" id="L49" title="All 2 branches covered.">
config.getMinIdle() < idleCount ||</span>
-<span class="fc bfc" id="L50" title="All 2 branches covered.">
config.getIdleEvictDuration().compareTo(underTest.getIdleDuration()) <
0;</span>
+<span class="fc bfc" id="L55" title="All 2 branches covered."> return
config.getIdleSoftEvictDuration().compareTo(underTest.getIdleDuration()) < 0
&&</span>
+<span class="fc bfc" id="L56" title="All 2 branches covered.">
config.getMinIdle() < idleCount ||</span>
+<span class="fc bfc" id="L57" title="All 2 branches covered.">
config.getIdleEvictDuration().compareTo(underTest.getIdleDuration()) <
0;</span>
// @formatter:on
}
}