You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by gg...@apache.org on 2019/08/10 22:26:46 UTC
svn commit: r1048500 [17/39] - in
/websites/production/commons/content/proper: commons-pool/
commons-pool/apidocs/ commons-pool/apidocs/org/apache/commons/pool2/
commons-pool/apidocs/org/apache/commons/pool2/class-use/
commons-pool/apidocs/org/apache/c...
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.html Sat Aug 10 22:26:44 2019
@@ -0,0 +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>BaseObjectPoolConfig</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">BaseObjectPoolConfig</span></div><h1>BaseObjectPoolConfig</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">161 of 334</td><td class="ctr2">51%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">5</td><
td class="ctr2">39</td><td class="ctr1">41</td><td class="ctr2">108</td><td class="ctr1">5</td><td class="ctr2">39</td></tr></tfoot><tbody><tr><td id="a38"><a href="BaseObjectPoolConfig.java.html#L717" class="el_method">toStringAppendFields(StringBuilder)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="145" alt="145"/></td><td class="ctr2" id="c34">0%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">33</td><td class="ctr2" id="i0">33</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a22"><a href="BaseObjectPoolConfig.java.html#L408" class="el_method">setEvictorShutdownTimeoutMillis(long)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c35">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><
td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a20"><a href="BaseObjectPoolConfig.java.html#L598" class="el_method">setEvictionPolicy(EvictionPolicy)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c36">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a21"><a href="BaseObjectPoolConfig.java.html#L612" class="el_method">setEvictionPolicyClassName(String)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c37">0%</td><td class="bar" id="d
3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">2</td><td class="ctr2" id="i4">2</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a26"><a href="BaseObjectPoolConfig.java.html#L712" class="el_method">setJmxNamePrefix(String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c38">0%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">2</td><td class="ctr2" id="i5">2</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a0"><a href="BaseObjectPoolConfig.java.html#L32" class="el_method">BaseObjectPoolConfig()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="47" height="10" title="57" alt="57"/></td><td class="ctr2" id="c0">100%</td>
<td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i1">19</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a37"><a href="BaseObjectPoolConfig.java.html#L156" class="el_method">static {...}</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="6" alt="6"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">2</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a27"><a href="BaseObjectPoolConfig.java.html#L248" class="el_method">setLifo(boolean)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c2">100
%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">2</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a23"><a href="BaseObjectPoolConfig.java.html#L262" class="el_method">setFairness(boolean)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">2</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a28"><a href="BaseObjectPoolConfig.java.html#L290" class="el_method">setMaxWaitMillis(long)</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class
="ctr2" id="c4">100%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i9">2</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a29"><a href="BaseObjectPoolConfig.java.html#L318" class="el_method">setMinEvictableIdleTimeMillis(long)</a></td><td class="bar" id="b10"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g10">1</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i10">2</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a31"><a href="BaseObjectPoolConfig.java.html#L350" class="el_method">setSoftMinEvictableIdleTimeMillis(long)</a></td><td class="bar" id="b11"><img src="../jacoco-resources/greenbar
.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i11">2</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a30"><a href="BaseObjectPoolConfig.java.html#L378" class="el_method">setNumTestsPerEvictionRun(int)</a></td><td class="bar" id="b12"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d12"/><td class="ctr2" id="e12">n/a</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g12">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i12">2</td><td class="ctr1" id="j12">0</td><td class="ctr2" id="k12">1</td></tr><tr><td id="a33"><a href="BaseObjectPoolConfig.java.html#L440" class="el_method">setTestOnCreate(boolean)</a></td><td class="bar
" id="b13"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d13"/><td class="ctr2" id="e13">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" id="g13">1</td><td class="ctr1" id="h13">0</td><td class="ctr2" id="i13">2</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1</td></tr><tr><td id="a32"><a href="BaseObjectPoolConfig.java.html#L468" class="el_method">setTestOnBorrow(boolean)</a></td><td class="bar" id="b14"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c9">100%</td><td class="bar" id="d14"/><td class="ctr2" id="e14">n/a</td><td class="ctr1" id="f14">0</td><td class="ctr2" id="g14">1</td><td class="ctr1" id="h14">0</td><td class="ctr2" id="i14">2</td><td class="ctr1" id="j14">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a34"><a href="BaseObjectPoolConfig.java.html#L496" class="el_method">setT
estOnReturn(boolean)</a></td><td class="bar" id="b15"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c10">100%</td><td class="bar" id="d15"/><td class="ctr2" id="e15">n/a</td><td class="ctr1" id="f15">0</td><td class="ctr2" id="g15">1</td><td class="ctr1" id="h15">0</td><td class="ctr2" id="i15">2</td><td class="ctr1" id="j15">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a35"><a href="BaseObjectPoolConfig.java.html#L524" class="el_method">setTestWhileIdle(boolean)</a></td><td class="bar" id="b16"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c11">100%</td><td class="bar" id="d16"/><td class="ctr2" id="e16">n/a</td><td class="ctr1" id="f16">0</td><td class="ctr2" id="g16">1</td><td class="ctr1" id="h16">0</td><td class="ctr2" id="i16">2</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a36"><a href="BaseObjectPoo
lConfig.java.html#L554" class="el_method">setTimeBetweenEvictionRunsMillis(long)</a></td><td class="bar" id="b17"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c12">100%</td><td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f17">0</td><td class="ctr2" id="g17">1</td><td class="ctr1" id="h17">0</td><td class="ctr2" id="i17">2</td><td class="ctr1" id="j17">0</td><td class="ctr2" id="k17">1</td></tr><tr><td id="a19"><a href="BaseObjectPoolConfig.java.html#L640" class="el_method">setBlockWhenExhausted(boolean)</a></td><td class="bar" id="b18"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c13">100%</td><td class="bar" id="d18"/><td class="ctr2" id="e18">n/a</td><td class="ctr1" id="f18">0</td><td class="ctr2" id="g18">1</td><td class="ctr1" id="h18">0</td><td class="ctr2" id="i18">2</td><td class="ctr1" id="j18">0</td><td class="
ctr2" id="k18">1</td></tr><tr><td id="a24"><a href="BaseObjectPoolConfig.java.html#L662" class="el_method">setJmxEnabled(boolean)</a></td><td class="bar" id="b19"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c14">100%</td><td class="bar" id="d19"/><td class="ctr2" id="e19">n/a</td><td class="ctr1" id="f19">0</td><td class="ctr2" id="g19">1</td><td class="ctr1" id="h19">0</td><td class="ctr2" id="i19">2</td><td class="ctr1" id="j19">0</td><td class="ctr2" id="k19">1</td></tr><tr><td id="a25"><a href="BaseObjectPoolConfig.java.html#L688" class="el_method">setJmxNameBase(String)</a></td><td class="bar" id="b20"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c15">100%</td><td class="bar" id="d20"/><td class="ctr2" id="e20">n/a</td><td class="ctr1" id="f20">0</td><td class="ctr2" id="g20">1</td><td class="ctr1" id="h20">0</td><td class="ctr2" id="i20">2</td><t
d class="ctr1" id="j20">0</td><td class="ctr2" id="k20">1</td></tr><tr><td id="a9"><a href="BaseObjectPoolConfig.java.html#L220" class="el_method">getLifo()</a></td><td class="bar" id="b21"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c16">100%</td><td class="bar" id="d21"/><td class="ctr2" id="e21">n/a</td><td class="ctr1" id="f21">0</td><td class="ctr2" id="g21">1</td><td class="ctr1" id="h21">0</td><td class="ctr2" id="i21">1</td><td class="ctr1" id="j21">0</td><td class="ctr2" id="k21">1</td></tr><tr><td id="a5"><a href="BaseObjectPoolConfig.java.html#L234" class="el_method">getFairness()</a></td><td class="bar" id="b22"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c17">100%</td><td class="bar" id="d22"/><td class="ctr2" id="e22">n/a</td><td class="ctr1" id="f22">0</td><td class="ctr2" id="g22">1</td><td class="ctr1" id="h22">0</td><td class="ctr2"
id="i22">1</td><td class="ctr1" id="j22">0</td><td class="ctr2" id="k22">1</td></tr><tr><td id="a10"><a href="BaseObjectPoolConfig.java.html#L276" class="el_method">getMaxWaitMillis()</a></td><td class="bar" id="b23"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c18">100%</td><td class="bar" id="d23"/><td class="ctr2" id="e23">n/a</td><td class="ctr1" id="f23">0</td><td class="ctr2" id="g23">1</td><td class="ctr1" id="h23">0</td><td class="ctr2" id="i23">1</td><td class="ctr1" id="j23">0</td><td class="ctr2" id="k23">1</td></tr><tr><td id="a11"><a href="BaseObjectPoolConfig.java.html#L304" class="el_method">getMinEvictableIdleTimeMillis()</a></td><td class="bar" id="b24"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c19">100%</td><td class="bar" id="d24"/><td class="ctr2" id="e24">n/a</td><td class="ctr1" id="f24">0</td><td class="ctr2" id="g24">1</td><td
class="ctr1" id="h24">0</td><td class="ctr2" id="i24">1</td><td class="ctr1" id="j24">0</td><td class="ctr2" id="k24">1</td></tr><tr><td id="a13"><a href="BaseObjectPoolConfig.java.html#L333" class="el_method">getSoftMinEvictableIdleTimeMillis()</a></td><td class="bar" id="b25"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c20">100%</td><td class="bar" id="d25"/><td class="ctr2" id="e25">n/a</td><td class="ctr1" id="f25">0</td><td class="ctr2" id="g25">1</td><td class="ctr1" id="h25">0</td><td class="ctr2" id="i25">1</td><td class="ctr1" id="j25">0</td><td class="ctr2" id="k25">1</td></tr><tr><td id="a12"><a href="BaseObjectPoolConfig.java.html#L364" class="el_method">getNumTestsPerEvictionRun()</a></td><td class="bar" id="b26"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c21">100%</td><td class="bar" id="d26"/><td class="ctr2" id="e26">n/a</td><td clas
s="ctr1" id="f26">0</td><td class="ctr2" id="g26">1</td><td class="ctr1" id="h26">0</td><td class="ctr2" id="i26">1</td><td class="ctr1" id="j26">0</td><td class="ctr2" id="k26">1</td></tr><tr><td id="a4"><a href="BaseObjectPoolConfig.java.html#L392" class="el_method">getEvictorShutdownTimeoutMillis()</a></td><td class="bar" id="b27"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c22">100%</td><td class="bar" id="d27"/><td class="ctr2" id="e27">n/a</td><td class="ctr1" id="f27">0</td><td class="ctr2" id="g27">1</td><td class="ctr1" id="h27">0</td><td class="ctr2" id="i27">1</td><td class="ctr1" id="j27">0</td><td class="ctr2" id="k27">1</td></tr><tr><td id="a15"><a href="BaseObjectPoolConfig.java.html#L424" class="el_method">getTestOnCreate()</a></td><td class="bar" id="b28"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c23">100%</td><td class="bar" id="d2
8"/><td class="ctr2" id="e28">n/a</td><td class="ctr1" id="f28">0</td><td class="ctr2" id="g28">1</td><td class="ctr1" id="h28">0</td><td class="ctr2" id="i28">1</td><td class="ctr1" id="j28">0</td><td class="ctr2" id="k28">1</td></tr><tr><td id="a14"><a href="BaseObjectPoolConfig.java.html#L454" class="el_method">getTestOnBorrow()</a></td><td class="bar" id="b29"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c24">100%</td><td class="bar" id="d29"/><td class="ctr2" id="e29">n/a</td><td class="ctr1" id="f29">0</td><td class="ctr2" id="g29">1</td><td class="ctr1" id="h29">0</td><td class="ctr2" id="i29">1</td><td class="ctr1" id="j29">0</td><td class="ctr2" id="k29">1</td></tr><tr><td id="a16"><a href="BaseObjectPoolConfig.java.html#L482" class="el_method">getTestOnReturn()</a></td><td class="bar" id="b30"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c25">
100%</td><td class="bar" id="d30"/><td class="ctr2" id="e30">n/a</td><td class="ctr1" id="f30">0</td><td class="ctr2" id="g30">1</td><td class="ctr1" id="h30">0</td><td class="ctr2" id="i30">1</td><td class="ctr1" id="j30">0</td><td class="ctr2" id="k30">1</td></tr><tr><td id="a17"><a href="BaseObjectPoolConfig.java.html#L510" class="el_method">getTestWhileIdle()</a></td><td class="bar" id="b31"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c26">100%</td><td class="bar" id="d31"/><td class="ctr2" id="e31">n/a</td><td class="ctr1" id="f31">0</td><td class="ctr2" id="g31">1</td><td class="ctr1" id="h31">0</td><td class="ctr2" id="i31">1</td><td class="ctr1" id="j31">0</td><td class="ctr2" id="k31">1</td></tr><tr><td id="a18"><a href="BaseObjectPoolConfig.java.html#L538" class="el_method">getTimeBetweenEvictionRunsMillis()</a></td><td class="bar" id="b32"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" t
itle="3" alt="3"/></td><td class="ctr2" id="c27">100%</td><td class="bar" id="d32"/><td class="ctr2" id="e32">n/a</td><td class="ctr1" id="f32">0</td><td class="ctr2" id="g32">1</td><td class="ctr1" id="h32">0</td><td class="ctr2" id="i32">1</td><td class="ctr1" id="j32">0</td><td class="ctr2" id="k32">1</td></tr><tr><td id="a2"><a href="BaseObjectPoolConfig.java.html#L569" class="el_method">getEvictionPolicy()</a></td><td class="bar" id="b33"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c28">100%</td><td class="bar" id="d33"/><td class="ctr2" id="e33">n/a</td><td class="ctr1" id="f33">0</td><td class="ctr2" id="g33">1</td><td class="ctr1" id="h33">0</td><td class="ctr2" id="i33">1</td><td class="ctr1" id="j33">0</td><td class="ctr2" id="k33">1</td></tr><tr><td id="a3"><a href="BaseObjectPoolConfig.java.html#L583" class="el_method">getEvictionPolicyClassName()</a></td><td class="bar" id="b34"><img src="../jacoco-resou
rces/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c29">100%</td><td class="bar" id="d34"/><td class="ctr2" id="e34">n/a</td><td class="ctr1" id="f34">0</td><td class="ctr2" id="g34">1</td><td class="ctr1" id="h34">0</td><td class="ctr2" id="i34">1</td><td class="ctr1" id="j34">0</td><td class="ctr2" id="k34">1</td></tr><tr><td id="a1"><a href="BaseObjectPoolConfig.java.html#L626" class="el_method">getBlockWhenExhausted()</a></td><td class="bar" id="b35"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c30">100%</td><td class="bar" id="d35"/><td class="ctr2" id="e35">n/a</td><td class="ctr1" id="f35">0</td><td class="ctr2" id="g35">1</td><td class="ctr1" id="h35">0</td><td class="ctr2" id="i35">1</td><td class="ctr1" id="j35">0</td><td class="ctr2" id="k35">1</td></tr><tr><td id="a6"><a href="BaseObjectPoolConfig.java.html#L651" class="el_method">getJmxEnabled()</a></td><td class="bar" i
d="b36"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c31">100%</td><td class="bar" id="d36"/><td class="ctr2" id="e36">n/a</td><td class="ctr1" id="f36">0</td><td class="ctr2" id="g36">1</td><td class="ctr1" id="h36">0</td><td class="ctr2" id="i36">1</td><td class="ctr1" id="j36">0</td><td class="ctr2" id="k36">1</td></tr><tr><td id="a7"><a href="BaseObjectPoolConfig.java.html#L675" class="el_method">getJmxNameBase()</a></td><td class="bar" id="b37"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c32">100%</td><td class="bar" id="d37"/><td class="ctr2" id="e37">n/a</td><td class="ctr1" id="f37">0</td><td class="ctr2" id="g37">1</td><td class="ctr1" id="h37">0</td><td class="ctr2" id="i37">1</td><td class="ctr1" id="j37">0</td><td class="ctr2" id="k37">1</td></tr><tr><td id="a8"><a href="BaseObjectPoolConfig.java.html#L700" class="el_method">getJmxNamePrefi
x()</a></td><td class="bar" id="b38"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c33">100%</td><td class="bar" id="d38"/><td class="ctr2" id="e38">n/a</td><td class="ctr1" id="f38">0</td><td class="ctr2" id="g38">1</td><td class="ctr1" id="h38">0</td><td class="ctr2" id="i38">1</td><td class="ctr1" id="j38">0</td><td class="ctr2" id="k38">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: 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 (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/BaseObjectPoolConfig.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,751 @@
+<?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>BaseObjectPoolConfig.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><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.source.html" class="el_package">org.apache.commons.pool2.impl</a> > <span class="el_s
ource">BaseObjectPoolConfig.java</span></div><h1>BaseObjectPoolConfig.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.impl;
+
+import org.apache.commons.pool2.BaseObject;
+
+/**
+ * Provides the implementation for the common attributes shared by the
+ * sub-classes. New instances of this class will be created using the defaults
+ * defined by the public constants.
+ * <p>
+ * This class is not thread-safe.
+ * </p>
+ *
+ * @param <T> Type of element pooled.
+ * @since 2.0
+ */
+<span class="fc" id="L32">public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Cloneable {</span>
+
+ /**
+ * The default value for the {@code lifo} configuration attribute.
+ * @see GenericObjectPool#getLifo()
+ * @see GenericKeyedObjectPool#getLifo()
+ */
+ public static final boolean DEFAULT_LIFO = true;
+
+ /**
+ * The default value for the {@code fairness} configuration attribute.
+ * @see GenericObjectPool#getFairness()
+ * @see GenericKeyedObjectPool#getFairness()
+ */
+ public static final boolean DEFAULT_FAIRNESS = false;
+
+ /**
+ * The default value for the {@code maxWait} configuration attribute.
+ * @see GenericObjectPool#getMaxWaitMillis()
+ * @see GenericKeyedObjectPool#getMaxWaitMillis()
+ */
+ public static final long DEFAULT_MAX_WAIT_MILLIS = -1L;
+
+ /**
+ * The default value for the {@code minEvictableIdleTimeMillis}
+ * configuration attribute.
+ * @see GenericObjectPool#getMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getMinEvictableIdleTimeMillis()
+ */
+ public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS =
+ 1000L * 60L * 30L;
+
+ /**
+ * The default value for the {@code softMinEvictableIdleTimeMillis}
+ * configuration attribute.
+ * @see GenericObjectPool#getSoftMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getSoftMinEvictableIdleTimeMillis()
+ */
+ public static final long DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS = -1;
+
+ /**
+ * The default value for {@code evictorShutdownTimeoutMillis} configuration
+ * attribute.
+ * @see GenericObjectPool#getEvictorShutdownTimeoutMillis()
+ * @see GenericKeyedObjectPool#getEvictorShutdownTimeoutMillis()
+ */
+ public static final long DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS =
+ 10L * 1000L;
+
+ /**
+ * The default value for the {@code numTestsPerEvictionRun} configuration
+ * attribute.
+ * @see GenericObjectPool#getNumTestsPerEvictionRun()
+ * @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
+ */
+ public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN = 3;
+
+ /**
+ * The default value for the {@code testOnCreate} configuration attribute.
+ * @see GenericObjectPool#getTestOnCreate()
+ * @see GenericKeyedObjectPool#getTestOnCreate()
+ *
+ * @since 2.2
+ */
+ public static final boolean DEFAULT_TEST_ON_CREATE = false;
+
+ /**
+ * The default value for the {@code testOnBorrow} configuration attribute.
+ * @see GenericObjectPool#getTestOnBorrow()
+ * @see GenericKeyedObjectPool#getTestOnBorrow()
+ */
+ public static final boolean DEFAULT_TEST_ON_BORROW = false;
+
+ /**
+ * The default value for the {@code testOnReturn} configuration attribute.
+ * @see GenericObjectPool#getTestOnReturn()
+ * @see GenericKeyedObjectPool#getTestOnReturn()
+ */
+ public static final boolean DEFAULT_TEST_ON_RETURN = false;
+
+ /**
+ * The default value for the {@code testWhileIdle} configuration attribute.
+ * @see GenericObjectPool#getTestWhileIdle()
+ * @see GenericKeyedObjectPool#getTestWhileIdle()
+ */
+ public static final boolean DEFAULT_TEST_WHILE_IDLE = false;
+
+ /**
+ * The default value for the {@code timeBetweenEvictionRunsMillis}
+ * configuration attribute.
+ * @see GenericObjectPool#getTimeBetweenEvictionRunsMillis()
+ * @see GenericKeyedObjectPool#getTimeBetweenEvictionRunsMillis()
+ */
+ public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS = -1L;
+
+ /**
+ * The default value for the {@code blockWhenExhausted} configuration
+ * attribute.
+ * @see GenericObjectPool#getBlockWhenExhausted()
+ * @see GenericKeyedObjectPool#getBlockWhenExhausted()
+ */
+ public static final boolean DEFAULT_BLOCK_WHEN_EXHAUSTED = true;
+
+ /**
+ * The default value for enabling JMX for pools created with a configuration
+ * instance.
+ */
+ public static final boolean DEFAULT_JMX_ENABLE = true;
+
+ /**
+ * The default value for the prefix used to name JMX enabled pools created
+ * with a configuration instance.
+ * @see GenericObjectPool#getJmxName()
+ * @see GenericKeyedObjectPool#getJmxName()
+ */
+ public static final String DEFAULT_JMX_NAME_PREFIX = "pool";
+
+ /**
+ * The default value for the base name to use to name JMX enabled pools
+ * created with a configuration instance. The default is <code>null</code>
+ * which means the pool will provide the base name to use.
+ * @see GenericObjectPool#getJmxName()
+ * @see GenericKeyedObjectPool#getJmxName()
+ */
+<span class="fc" id="L156"> public static final String DEFAULT_JMX_NAME_BASE = null;</span>
+
+ /**
+ * The default value for the {@code evictionPolicyClassName} configuration
+ * attribute.
+ * @see GenericObjectPool#getEvictionPolicyClassName()
+ * @see GenericKeyedObjectPool#getEvictionPolicyClassName()
+ */
+<span class="fc" id="L164"> public static final String DEFAULT_EVICTION_POLICY_CLASS_NAME = DefaultEvictionPolicy.class.getName();</span>
+
+<span class="fc" id="L166"> private boolean lifo = DEFAULT_LIFO;</span>
+
+<span class="fc" id="L168"> private boolean fairness = DEFAULT_FAIRNESS;</span>
+
+<span class="fc" id="L170"> private long maxWaitMillis = DEFAULT_MAX_WAIT_MILLIS;</span>
+
+<span class="fc" id="L172"> private long minEvictableIdleTimeMillis =</span>
+ DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS;
+
+<span class="fc" id="L175"> private long evictorShutdownTimeoutMillis =</span>
+ DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS;
+
+<span class="fc" id="L178"> private long softMinEvictableIdleTimeMillis =</span>
+ DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS;
+
+<span class="fc" id="L181"> private int numTestsPerEvictionRun =</span>
+ DEFAULT_NUM_TESTS_PER_EVICTION_RUN;
+
+<span class="fc" id="L184"> private EvictionPolicy<T> evictionPolicy = null; // Only 2.6.0 applications set this</span>
+
+<span class="fc" id="L186"> private String evictionPolicyClassName = DEFAULT_EVICTION_POLICY_CLASS_NAME;</span>
+
+<span class="fc" id="L188"> private boolean testOnCreate = DEFAULT_TEST_ON_CREATE;</span>
+
+<span class="fc" id="L190"> private boolean testOnBorrow = DEFAULT_TEST_ON_BORROW;</span>
+
+<span class="fc" id="L192"> private boolean testOnReturn = DEFAULT_TEST_ON_RETURN;</span>
+
+<span class="fc" id="L194"> private boolean testWhileIdle = DEFAULT_TEST_WHILE_IDLE;</span>
+
+<span class="fc" id="L196"> private long timeBetweenEvictionRunsMillis =</span>
+ DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS;
+
+<span class="fc" id="L199"> private boolean blockWhenExhausted = DEFAULT_BLOCK_WHEN_EXHAUSTED;</span>
+
+<span class="fc" id="L201"> private boolean jmxEnabled = DEFAULT_JMX_ENABLE;</span>
+
+ // TODO Consider changing this to a single property for 3.x
+<span class="fc" id="L204"> private String jmxNamePrefix = DEFAULT_JMX_NAME_PREFIX;</span>
+
+<span class="fc" id="L206"> private String jmxNameBase = DEFAULT_JMX_NAME_BASE;</span>
+
+
+ /**
+ * Get the value for the {@code lifo} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @return The current setting of {@code lifo} for this configuration
+ * instance
+ *
+ * @see GenericObjectPool#getLifo()
+ * @see GenericKeyedObjectPool#getLifo()
+ */
+ public boolean getLifo() {
+<span class="fc" id="L220"> return lifo;</span>
+ }
+
+ /**
+ * Get the value for the {@code fairness} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @return The current setting of {@code fairness} for this configuration
+ * instance
+ *
+ * @see GenericObjectPool#getFairness()
+ * @see GenericKeyedObjectPool#getFairness()
+ */
+ public boolean getFairness() {
+<span class="fc" id="L234"> return fairness;</span>
+ }
+
+ /**
+ * Set the value for the {@code lifo} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @param lifo The new setting of {@code lifo}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getLifo()
+ * @see GenericKeyedObjectPool#getLifo()
+ */
+ public void setLifo(final boolean lifo) {
+<span class="fc" id="L248"> this.lifo = lifo;</span>
+<span class="fc" id="L249"> }</span>
+
+ /**
+ * Set the value for the {@code fairness} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @param fairness The new setting of {@code fairness}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getFairness()
+ * @see GenericKeyedObjectPool#getFairness()
+ */
+ public void setFairness(final boolean fairness) {
+<span class="fc" id="L262"> this.fairness = fairness;</span>
+<span class="fc" id="L263"> }</span>
+
+ /**
+ * Get the value for the {@code maxWait} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @return The current setting of {@code maxWait} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getMaxWaitMillis()
+ * @see GenericKeyedObjectPool#getMaxWaitMillis()
+ */
+ public long getMaxWaitMillis() {
+<span class="fc" id="L276"> return maxWaitMillis;</span>
+ }
+
+ /**
+ * Set the value for the {@code maxWait} configuration attribute for pools
+ * created with this configuration instance.
+ *
+ * @param maxWaitMillis The new setting of {@code maxWaitMillis}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getMaxWaitMillis()
+ * @see GenericKeyedObjectPool#getMaxWaitMillis()
+ */
+ public void setMaxWaitMillis(final long maxWaitMillis) {
+<span class="fc" id="L290"> this.maxWaitMillis = maxWaitMillis;</span>
+<span class="fc" id="L291"> }</span>
+
+ /**
+ * Get the value for the {@code minEvictableIdleTimeMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code minEvictableIdleTimeMillis} for
+ * this configuration instance
+ *
+ * @see GenericObjectPool#getMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getMinEvictableIdleTimeMillis()
+ */
+ public long getMinEvictableIdleTimeMillis() {
+<span class="fc" id="L304"> return minEvictableIdleTimeMillis;</span>
+ }
+
+ /**
+ * Set the value for the {@code minEvictableIdleTimeMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param minEvictableIdleTimeMillis The new setting of
+ * {@code minEvictableIdleTimeMillis} for this configuration instance
+ *
+ * @see GenericObjectPool#getMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getMinEvictableIdleTimeMillis()
+ */
+ public void setMinEvictableIdleTimeMillis(final long minEvictableIdleTimeMillis) {
+<span class="fc" id="L318"> this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;</span>
+<span class="fc" id="L319"> }</span>
+
+ /**
+ * Get the value for the {@code softMinEvictableIdleTimeMillis}
+ * configuration attribute for pools created with this configuration
+ * instance.
+ *
+ * @return The current setting of {@code softMinEvictableIdleTimeMillis}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getSoftMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getSoftMinEvictableIdleTimeMillis()
+ */
+ public long getSoftMinEvictableIdleTimeMillis() {
+<span class="fc" id="L333"> return softMinEvictableIdleTimeMillis;</span>
+ }
+
+ /**
+ * Set the value for the {@code softMinEvictableIdleTimeMillis}
+ * configuration attribute for pools created with this configuration
+ * instance.
+ *
+ * @param softMinEvictableIdleTimeMillis The new setting of
+ * {@code softMinEvictableIdleTimeMillis} for this configuration
+ * instance
+ *
+ * @see GenericObjectPool#getSoftMinEvictableIdleTimeMillis()
+ * @see GenericKeyedObjectPool#getSoftMinEvictableIdleTimeMillis()
+ */
+ public void setSoftMinEvictableIdleTimeMillis(
+ final long softMinEvictableIdleTimeMillis) {
+<span class="fc" id="L350"> this.softMinEvictableIdleTimeMillis = softMinEvictableIdleTimeMillis;</span>
+<span class="fc" id="L351"> }</span>
+
+ /**
+ * Get the value for the {@code numTestsPerEvictionRun} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code numTestsPerEvictionRun} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getNumTestsPerEvictionRun()
+ * @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
+ */
+ public int getNumTestsPerEvictionRun() {
+<span class="fc" id="L364"> return numTestsPerEvictionRun;</span>
+ }
+
+ /**
+ * Set the value for the {@code numTestsPerEvictionRun} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param numTestsPerEvictionRun The new setting of
+ * {@code numTestsPerEvictionRun} for this configuration instance
+ *
+ * @see GenericObjectPool#getNumTestsPerEvictionRun()
+ * @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
+ */
+ public void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) {
+<span class="fc" id="L378"> this.numTestsPerEvictionRun = numTestsPerEvictionRun;</span>
+<span class="fc" id="L379"> }</span>
+
+ /**
+ * Get the value for the {@code evictorShutdownTimeoutMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code evictorShutdownTimeoutMillis} for
+ * this configuration instance
+ *
+ * @see GenericObjectPool#getEvictorShutdownTimeoutMillis()
+ * @see GenericKeyedObjectPool#getEvictorShutdownTimeoutMillis()
+ */
+ public long getEvictorShutdownTimeoutMillis() {
+<span class="fc" id="L392"> return evictorShutdownTimeoutMillis;</span>
+ }
+
+ /**
+ * Set the value for the {@code evictorShutdownTimeoutMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param evictorShutdownTimeoutMillis The new setting of
+ * {@code evictorShutdownTimeoutMillis} for this configuration
+ * instance
+ *
+ * @see GenericObjectPool#getEvictorShutdownTimeoutMillis()
+ * @see GenericKeyedObjectPool#getEvictorShutdownTimeoutMillis()
+ */
+ public void setEvictorShutdownTimeoutMillis(
+ final long evictorShutdownTimeoutMillis) {
+<span class="nc" id="L408"> this.evictorShutdownTimeoutMillis = evictorShutdownTimeoutMillis;</span>
+<span class="nc" id="L409"> }</span>
+
+ /**
+ * Get the value for the {@code testOnCreate} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @return The current setting of {@code testOnCreate} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getTestOnCreate()
+ * @see GenericKeyedObjectPool#getTestOnCreate()
+ *
+ * @since 2.2
+ */
+ public boolean getTestOnCreate() {
+<span class="fc" id="L424"> return testOnCreate;</span>
+ }
+
+ /**
+ * Set the value for the {@code testOnCreate} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @param testOnCreate The new setting of {@code testOnCreate}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getTestOnCreate()
+ * @see GenericKeyedObjectPool#getTestOnCreate()
+ *
+ * @since 2.2
+ */
+ public void setTestOnCreate(final boolean testOnCreate) {
+<span class="fc" id="L440"> this.testOnCreate = testOnCreate;</span>
+<span class="fc" id="L441"> }</span>
+
+ /**
+ * Get the value for the {@code testOnBorrow} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @return The current setting of {@code testOnBorrow} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getTestOnBorrow()
+ * @see GenericKeyedObjectPool#getTestOnBorrow()
+ */
+ public boolean getTestOnBorrow() {
+<span class="fc" id="L454"> return testOnBorrow;</span>
+ }
+
+ /**
+ * Set the value for the {@code testOnBorrow} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @param testOnBorrow The new setting of {@code testOnBorrow}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getTestOnBorrow()
+ * @see GenericKeyedObjectPool#getTestOnBorrow()
+ */
+ public void setTestOnBorrow(final boolean testOnBorrow) {
+<span class="fc" id="L468"> this.testOnBorrow = testOnBorrow;</span>
+<span class="fc" id="L469"> }</span>
+
+ /**
+ * Get the value for the {@code testOnReturn} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @return The current setting of {@code testOnReturn} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getTestOnReturn()
+ * @see GenericKeyedObjectPool#getTestOnReturn()
+ */
+ public boolean getTestOnReturn() {
+<span class="fc" id="L482"> return testOnReturn;</span>
+ }
+
+ /**
+ * Set the value for the {@code testOnReturn} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @param testOnReturn The new setting of {@code testOnReturn}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getTestOnReturn()
+ * @see GenericKeyedObjectPool#getTestOnReturn()
+ */
+ public void setTestOnReturn(final boolean testOnReturn) {
+<span class="fc" id="L496"> this.testOnReturn = testOnReturn;</span>
+<span class="fc" id="L497"> }</span>
+
+ /**
+ * Get the value for the {@code testWhileIdle} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @return The current setting of {@code testWhileIdle} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getTestWhileIdle()
+ * @see GenericKeyedObjectPool#getTestWhileIdle()
+ */
+ public boolean getTestWhileIdle() {
+<span class="fc" id="L510"> return testWhileIdle;</span>
+ }
+
+ /**
+ * Set the value for the {@code testWhileIdle} configuration attribute for
+ * pools created with this configuration instance.
+ *
+ * @param testWhileIdle The new setting of {@code testWhileIdle}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getTestWhileIdle()
+ * @see GenericKeyedObjectPool#getTestWhileIdle()
+ */
+ public void setTestWhileIdle(final boolean testWhileIdle) {
+<span class="fc" id="L524"> this.testWhileIdle = testWhileIdle;</span>
+<span class="fc" id="L525"> }</span>
+
+ /**
+ * Get the value for the {@code timeBetweenEvictionRunsMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code timeBetweenEvictionRunsMillis} for
+ * this configuration instance
+ *
+ * @see GenericObjectPool#getTimeBetweenEvictionRunsMillis()
+ * @see GenericKeyedObjectPool#getTimeBetweenEvictionRunsMillis()
+ */
+ public long getTimeBetweenEvictionRunsMillis() {
+<span class="fc" id="L538"> return timeBetweenEvictionRunsMillis;</span>
+ }
+
+ /**
+ * Set the value for the {@code timeBetweenEvictionRunsMillis} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param timeBetweenEvictionRunsMillis The new setting of
+ * {@code timeBetweenEvictionRunsMillis} for this configuration
+ * instance
+ *
+ * @see GenericObjectPool#getTimeBetweenEvictionRunsMillis()
+ * @see GenericKeyedObjectPool#getTimeBetweenEvictionRunsMillis()
+ */
+ public void setTimeBetweenEvictionRunsMillis(
+ final long timeBetweenEvictionRunsMillis) {
+<span class="fc" id="L554"> this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;</span>
+<span class="fc" id="L555"> }</span>
+
+ /**
+ * Get the value for the {@code evictionPolicyClass} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code evictionPolicyClass} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getEvictionPolicy()
+ * @see GenericKeyedObjectPool#getEvictionPolicy()
+ * @since 2.6.0
+ */
+ public EvictionPolicy<T> getEvictionPolicy() {
+<span class="fc" id="L569"> return evictionPolicy;</span>
+ }
+
+ /**
+ * Get the value for the {@code evictionPolicyClassName} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @return The current setting of {@code evictionPolicyClassName} for this
+ * configuration instance
+ *
+ * @see GenericObjectPool#getEvictionPolicyClassName()
+ * @see GenericKeyedObjectPool#getEvictionPolicyClassName()
+ */
+ public String getEvictionPolicyClassName() {
+<span class="fc" id="L583"> return evictionPolicyClassName;</span>
+ }
+
+ /**
+ * Set the value for the {@code evictionPolicyClass} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param evictionPolicy The new setting of
+ * {@code evictionPolicyClass} for this configuration instance
+ *
+ * @see GenericObjectPool#getEvictionPolicy()
+ * @see GenericKeyedObjectPool#getEvictionPolicy()
+ * @since 2.6.0
+ */
+ public void setEvictionPolicy(final EvictionPolicy<T> evictionPolicy) {
+<span class="nc" id="L598"> this.evictionPolicy = evictionPolicy;</span>
+<span class="nc" id="L599"> }</span>
+
+ /**
+ * Set the value for the {@code evictionPolicyClassName} configuration
+ * attribute for pools created with this configuration instance.
+ *
+ * @param evictionPolicyClassName The new setting of
+ * {@code evictionPolicyClassName} for this configuration instance
+ *
+ * @see GenericObjectPool#getEvictionPolicyClassName()
+ * @see GenericKeyedObjectPool#getEvictionPolicyClassName()
+ */
+ public void setEvictionPolicyClassName(final String evictionPolicyClassName) {
+<span class="nc" id="L612"> this.evictionPolicyClassName = evictionPolicyClassName;</span>
+<span class="nc" id="L613"> }</span>
+
+ /**
+ * Get 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
+ *
+ * @see GenericObjectPool#getBlockWhenExhausted()
+ * @see GenericKeyedObjectPool#getBlockWhenExhausted()
+ */
+ public boolean getBlockWhenExhausted() {
+<span class="fc" id="L626"> return blockWhenExhausted;</span>
+ }
+
+ /**
+ * Set the value for the {@code blockWhenExhausted} configuration attribute
+ * for pools created with this configuration instance.
+ *
+ * @param blockWhenExhausted The new setting of {@code blockWhenExhausted}
+ * for this configuration instance
+ *
+ * @see GenericObjectPool#getBlockWhenExhausted()
+ * @see GenericKeyedObjectPool#getBlockWhenExhausted()
+ */
+ public void setBlockWhenExhausted(final boolean blockWhenExhausted) {
+<span class="fc" id="L640"> this.blockWhenExhausted = blockWhenExhausted;</span>
+<span class="fc" id="L641"> }</span>
+
+ /**
+ * Gets the value of the flag that determines if JMX will be enabled for
+ * pools created with this configuration instance.
+ *
+ * @return The current setting of {@code jmxEnabled} for this configuration
+ * instance
+ */
+ public boolean getJmxEnabled() {
+<span class="fc" id="L651"> return jmxEnabled;</span>
+ }
+
+ /**
+ * Sets the value of the flag that determines if JMX will be enabled for
+ * pools created with this configuration instance.
+ *
+ * @param jmxEnabled The new setting of {@code jmxEnabled}
+ * for this configuration instance
+ */
+ public void setJmxEnabled(final boolean jmxEnabled) {
+<span class="fc" id="L662"> this.jmxEnabled = jmxEnabled;</span>
+<span class="fc" id="L663"> }</span>
+
+ /**
+ * 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. A value of <code>null</code> means that the pool will define
+ * the JMX name base.
+ *
+ * @return The current setting of {@code jmxNameBase} for this
+ * configuration instance
+ */
+ public String getJmxNameBase() {
+<span class="fc" id="L675"> return jmxNameBase;</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 of <code>null</code> means that the pool will define
+ * the JMX name base.
+ *
+ * @param jmxNameBase The new setting of {@code jmxNameBase}
+ * for this configuration instance
+ */
+ public void setJmxNameBase(final String jmxNameBase) {
+<span class="fc" id="L688"> this.jmxNameBase = jmxNameBase;</span>
+<span class="fc" id="L689"> }</span>
+
+ /**
+ * 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.
+ *
+ * @return The current setting of {@code jmxNamePrefix} for this
+ * configuration instance
+ */
+ public String getJmxNamePrefix() {
+<span class="fc" id="L700"> return jmxNamePrefix;</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.
+ *
+ * @param jmxNamePrefix The new setting of {@code jmxNamePrefix}
+ * for this configuration instance
+ */
+ public void setJmxNamePrefix(final String jmxNamePrefix) {
+<span class="nc" id="L712"> this.jmxNamePrefix = jmxNamePrefix;</span>
+<span class="nc" id="L713"> }</span>
+
+ @Override
+ protected void toStringAppendFields(final StringBuilder builder) {
+<span class="nc" id="L717"> builder.append("lifo=");</span>
+<span class="nc" id="L718"> builder.append(lifo);</span>
+<span class="nc" id="L719"> builder.append(", fairness=");</span>
+<span class="nc" id="L720"> builder.append(fairness);</span>
+<span class="nc" id="L721"> builder.append(", maxWaitMillis=");</span>
+<span class="nc" id="L722"> builder.append(maxWaitMillis);</span>
+<span class="nc" id="L723"> builder.append(", minEvictableIdleTimeMillis=");</span>
+<span class="nc" id="L724"> builder.append(minEvictableIdleTimeMillis);</span>
+<span class="nc" id="L725"> builder.append(", softMinEvictableIdleTimeMillis=");</span>
+<span class="nc" id="L726"> builder.append(softMinEvictableIdleTimeMillis);</span>
+<span class="nc" id="L727"> builder.append(", numTestsPerEvictionRun=");</span>
+<span class="nc" id="L728"> builder.append(numTestsPerEvictionRun);</span>
+<span class="nc" id="L729"> builder.append(", evictionPolicyClassName=");</span>
+<span class="nc" id="L730"> builder.append(evictionPolicyClassName);</span>
+<span class="nc" id="L731"> builder.append(", testOnCreate=");</span>
+<span class="nc" id="L732"> builder.append(testOnCreate);</span>
+<span class="nc" id="L733"> builder.append(", testOnBorrow=");</span>
+<span class="nc" id="L734"> builder.append(testOnBorrow);</span>
+<span class="nc" id="L735"> builder.append(", testOnReturn=");</span>
+<span class="nc" id="L736"> builder.append(testOnReturn);</span>
+<span class="nc" id="L737"> builder.append(", testWhileIdle=");</span>
+<span class="nc" id="L738"> builder.append(testWhileIdle);</span>
+<span class="nc" id="L739"> builder.append(", timeBetweenEvictionRunsMillis=");</span>
+<span class="nc" id="L740"> builder.append(timeBetweenEvictionRunsMillis);</span>
+<span class="nc" id="L741"> builder.append(", blockWhenExhausted=");</span>
+<span class="nc" id="L742"> builder.append(blockWhenExhausted);</span>
+<span class="nc" id="L743"> builder.append(", jmxEnabled=");</span>
+<span class="nc" id="L744"> builder.append(jmxEnabled);</span>
+<span class="nc" id="L745"> builder.append(", jmxNamePrefix=");</span>
+<span class="nc" id="L746"> builder.append(jmxNamePrefix);</span>
+<span class="nc" id="L747"> builder.append(", jmxNameBase=");</span>
+<span class="nc" id="L748"> builder.append(jmxNameBase);</span>
+<span class="nc" id="L749"> }</span>
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.html Sat Aug 10 22:26:44 2019
@@ -0,0 +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>CallStackUtils</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">CallStackUtils</span></div><h1>CallStackUtils</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">22 of 38</td><td class="ctr2">42%</td><td class="bar">3 of 6</td><td class="ctr2">50%</td><td class="ctr1">4</td><td class="ctr2">6</t
d><td class="ctr1">5</td><td class="ctr2">9</td><td class="ctr1">1</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a0"><a href="CallStackUtils.java.html#L35" class="el_method">canCreateSecurityManager()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="77" height="10" title="11" alt="11"/><img src="../jacoco-resources/greenbar.gif" width="42" height="10" title="6" alt="6"/></td><td class="ctr2" id="c1">35%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="30" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h0">4</td><td class="ctr2" id="i0">7</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="CallStackUtils.java.html#L75" class="el_method">newCallStack(String, boolean, boolean)</a></t
d><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="42" height="10" title="6" alt="6"/><img src="../jacoco-resources/greenbar.gif" width="70" height="10" title="10" alt="10"/></td><td class="ctr2" id="c0">62%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">50%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g0">3</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="CallStackUtils.java.html#L58" class="el_method">newCallStack(String, boolean)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="35" height="10" title="5" alt="5"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2"
>1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k2">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.java.html (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/CallStackUtils.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,86 @@
+<?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>CallStackUtils.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><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.source.html" class="el_package">org.apache.commons.pool2.impl</a> > <span class="el_source"
>CallStackUtils.java</span></div><h1>CallStackUtils.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.impl;
+
+import java.security.AccessControlException;
+
+/**
+ * Utility methods for {@link CallStack}.
+ *
+ * @since 2.4.3
+ */
+public final class CallStackUtils {
+
+ /**
+ * Returns whether the caller can create a security manager in the current environment.
+ *
+ * @return {@code true} if it is able to create a security manager in the current environment, {@code false}
+ * otherwise.
+ */
+ private static boolean canCreateSecurityManager() {
+<span class="fc" id="L35"> final SecurityManager manager = System.getSecurityManager();</span>
+<span class="pc bpc" id="L36" title="1 of 2 branches missed."> if (manager == null) {</span>
+<span class="fc" id="L37"> return true;</span>
+ }
+ try {
+<span class="nc" id="L40"> manager.checkPermission(new RuntimePermission("createSecurityManager"));</span>
+<span class="nc" id="L41"> return true;</span>
+<span class="nc" id="L42"> } catch (final AccessControlException ignored) {</span>
+<span class="nc" id="L43"> return false;</span>
+ }
+ }
+
+ /**
+ * Constructs a new {@link CallStack} using the fastest allowed strategy.
+ *
+ * @param messageFormat message (or format) to print first in stack traces
+ * @param useTimestamp if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise,
+ * print message format literally
+ * @return a new CallStack
+ * @deprecated use {@link #newCallStack(String, boolean, boolean)}
+ */
+ @Deprecated
+ public static CallStack newCallStack(final String messageFormat, final boolean useTimestamp) {
+<span class="nc" id="L58"> return newCallStack(messageFormat, useTimestamp, false);</span>
+ }
+
+ /**
+ * Constructs a new {@link CallStack} using the fasted allowed strategy.
+ *
+ * @param messageFormat message (or format) to print first in stack traces
+ * @param useTimestamp if true, interpret message as a SimpleDateFormat and print the created timestamp;
+ * otherwise, print message format literally
+ * @param requireFullStackTrace if true, forces the use of a stack walking mechanism that includes full stack trace
+ * information; otherwise, uses a faster implementation if possible
+ * @return a new CallStack
+ * @since 2.5
+ */
+ public static CallStack newCallStack(final String messageFormat,
+ final boolean useTimestamp,
+ final boolean requireFullStackTrace) {
+<span class="pc bpc" id="L75" title="2 of 4 branches missed."> return canCreateSecurityManager() && !requireFullStackTrace</span>
+ ? new SecurityManagerCallStack(messageFormat, useTimestamp)
+ : new ThrowableCallStack(messageFormat, useTimestamp);
+ }
+
+ /**
+ * Hidden constructor.
+ */
+ private CallStackUtils() {
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: 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 (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.html Sat Aug 10 22:26:44 2019
@@ -0,0 +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">6</td><td class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td id="a1"><a href="DefaultEvictionPolicy.java.html#L46" 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">5</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#L40" 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.3.201901230119</span></div></body></html>
\ No newline at end of file
Added: 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 (added)
+++ websites/production/commons/content/proper/commons-pool/jacoco/org.apache.commons.pool2.impl/DefaultEvictionPolicy.java.html Sat Aug 10 22:26:44 2019
@@ -0,0 +1,54 @@
+<?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.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><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.source.html" class="el_package">org.apache.commons.pool2.impl</a> > <span class="el_
source">DefaultEvictionPolicy.java</span></div><h1>DefaultEvictionPolicy.java</h1><pre class="source lang-java linenums">/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.pool2.impl;
+
+import org.apache.commons.pool2.PooledObject;
+
+/**
+ * Provides the default implementation of {@link EvictionPolicy} used by the
+ * pools. Objects will be evicted if the following conditions are met:
+ * <ul>
+ * <li>the object has been idle longer than
+ * {@link GenericObjectPool#getMinEvictableIdleTimeMillis()} /
+ * {@link GenericKeyedObjectPool#getMinEvictableIdleTimeMillis()}</li>
+ * <li>there are more than {@link GenericObjectPool#getMinIdle()} /
+ * {@link GenericKeyedObjectPoolConfig#getMinIdlePerKey()} idle objects in
+ * the pool and the object has been idle for longer than
+ * {@link GenericObjectPool#getSoftMinEvictableIdleTimeMillis()} /
+ * {@link GenericKeyedObjectPool#getSoftMinEvictableIdleTimeMillis()}
+ * </ul>
+ * This class is immutable and thread-safe.
+ *
+ * @param <T> the type of objects in the pool
+ *
+ * @since 2.0
+ */
+<span class="fc" id="L40">public class DefaultEvictionPolicy<T> implements EvictionPolicy<T> {</span>
+
+ @Override
+ public boolean evict(final EvictionConfig config, final PooledObject<T> underTest,
+ final int idleCount) {
+
+<span class="fc bfc" id="L46" title="All 2 branches covered."> if ((config.getIdleSoftEvictTime() < underTest.getIdleTimeMillis() &&</span>
+<span class="fc bfc" id="L47" title="All 2 branches covered."> config.getMinIdle() < idleCount) ||</span>
+<span class="fc bfc" id="L48" title="All 2 branches covered."> config.getIdleEvictTime() < underTest.getIdleTimeMillis()) {</span>
+<span class="fc" id="L49"> return true;</span>
+ }
+<span class="fc" id="L51"> return false;</span>
+ }
+}
+</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.3.201901230119</span></div></body></html>
\ No newline at end of file