commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r960538 [30/30] - in /websites/production/commons/content/proper/commons-pool: ./ apidocs/ apidocs/org/apache/commons/pool2/ apidocs/org/apache/commons/pool2/class-use/ apidocs/org/apache/commons/pool2/impl/ apidocs/org/apache/commons/pool2...
Date Sun, 02 Aug 2015 15:46:22 GMT
Added: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html (added)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html Sun Aug  2 15:46:18 2015
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>TestBaseGenericObjectPool xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.pool2.impl;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.pool2.impl.TestGenericObjectPool.SimpleFactory;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.junit.After;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> * @version $Revision:$</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html">TestBaseGenericObjectPool</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      BaseGenericObjectPool&lt;String&gt; pool = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <a href="../../../../../org/apache/commons/pool2/impl/TestSoftReferenceObjectPool.html">SimpleFactory</a> factory = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      @Before
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          factory = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/pool2/impl/TestSoftReferenceObjectPool.html">SimpleFactory</a>();
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          pool = <strong class="jxr_keyword">new</strong> GenericObjectPool&lt;String&gt;(factory);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      }
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @After
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          pool.close();
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          pool = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          factory = <strong class="jxr_keyword">null</strong>; 
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      }
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      @Test
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBorrowWaitStatistics() {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          DefaultPooledObject&lt;String&gt; p = (DefaultPooledObject&lt;String&gt;) factory.makeObject();
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          pool.updateStatsBorrow(p, 10);
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          pool.updateStatsBorrow(p, 20);
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          pool.updateStatsBorrow(p, 20);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          pool.updateStatsBorrow(p, 30);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          Assert.assertEquals(20, pool.getMeanBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          Assert.assertEquals(30, pool.getMaxBorrowWaitTimeMillis(), 0);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testBorrowWaitStatisticsMax() {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          DefaultPooledObject&lt;String&gt; p = (DefaultPooledObject&lt;String&gt;) factory.makeObject();
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          Assert.assertEquals(0, pool.getMaxBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          pool.updateStatsBorrow(p, 0);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          Assert.assertEquals(0, pool.getMaxBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          pool.updateStatsBorrow(p, 20);
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          Assert.assertEquals(20, pool.getMaxBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          pool.updateStatsBorrow(p, 20);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          Assert.assertEquals(20, pool.getMaxBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          pool.updateStatsBorrow(p, 10);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          Assert.assertEquals(20, pool.getMaxBorrowWaitTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>      
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      @Test
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testActiveTimeStatistics() {
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>      	<strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 99; i++) {  <em class="jxr_comment">// must be &lt; MEAN_TIMING_STATS_CACHE_SIZE</em>
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>      		pool.updateStatsReturn(i);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>      	}
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      	Assert.assertEquals(49, pool.getMeanActiveTimeMillis(), Double.MIN_VALUE);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      }
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2001&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestBaseGenericObjectPool.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestDefaultPooledObject.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestDefaultPooledObject.html (added)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestDefaultPooledObject.html Sun Aug  2 15:46:18 2015
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>TestDefaultPooledObject xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/pool2/impl/TestDefaultPooledObject.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.pool2.impl;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.ExecutorService;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.Executors;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.Future;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicBoolean;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/pool2/impl/TestDefaultPooledObject.html">TestDefaultPooledObject</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment">     * JIRA: POOL-279</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment">     * @throws Exception</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      @Test
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testgetIdleTimeMillis() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">final</strong> DefaultPooledObject&lt;Object&gt; dpo = <strong class="jxr_keyword">new</strong> DefaultPooledObject&lt;Object&gt;(<strong class="jxr_keyword">new</strong> Object());
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">final</strong> AtomicBoolean negativeIdleTimeReturned = <strong class="jxr_keyword">new</strong> AtomicBoolean(false);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          ExecutorService executor = Executors.newFixedThreadPool(
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>                                        Runtime.getRuntime().availableProcessors()*3);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          Runnable allocateAndDeallocateTask = <strong class="jxr_keyword">new</strong> Runnable() {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> run() {
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>                  <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i=0;i&lt;10000;i++) {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>                      <strong class="jxr_keyword">if</strong> (dpo.getIdleTimeMillis() &lt; 0) {
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>                          negativeIdleTimeReturned.set(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>                          <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>                      }
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>                  }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                  dpo.allocate();
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>                  <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i=0;i&lt;10000;i++) {
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>                      <strong class="jxr_keyword">if</strong> (dpo.getIdleTimeMillis() &lt; 0) {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>                          negativeIdleTimeReturned.set(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>                          <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                      }
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  }
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                  dpo.deallocate();
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>              }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          };
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          Runnable getIdleTimeTask = <strong class="jxr_keyword">new</strong> Runnable() {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> run() {
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                  <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i=0;i&lt;10000;i++) {
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                      <strong class="jxr_keyword">if</strong> (dpo.getIdleTimeMillis() &lt; 0) {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                          negativeIdleTimeReturned.set(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>                          <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                      }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  }
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              }
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          };
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          <strong class="jxr_keyword">double</strong> probabilityOfAllocationTask = 0.7;
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          List&lt;Future&lt;?&gt;&gt; futures = <strong class="jxr_keyword">new</strong> ArrayList&lt;Future&lt;?&gt;&gt;();
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt;= 10000; i++) {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              Runnable randomTask = Math.random() &lt; probabilityOfAllocationTask ?
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                                    allocateAndDeallocateTask : getIdleTimeTask;
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              futures.add(executor.submit(randomTask));
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          }
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          <strong class="jxr_keyword">for</strong> (Future&lt;?&gt; future: futures) {
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>              future.get();
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          Assert.assertFalse(
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>             <span class="jxr_string">"DefaultPooledObject.getIdleTimeMillis() returned a negative value"</span>,
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>             negativeIdleTimeReturned.get());
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>  
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2001&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Propchange: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/TestDefaultPooledObject.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.impl</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.impl</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/impl/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.impl</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.impl</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.performance</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.performance</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/performance/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.performance</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.performance</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.proxy</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.proxy</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/org/apache/commons/pool2/proxy/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.proxy</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.proxy</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/overview-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/overview-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/overview-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference</title>
+		<title>Apache Commons Pool 2.4.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref-test/overview-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref-test/overview-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref-test/overview-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference</title>
+		<title>Apache Commons Pool 2.4.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -24,7 +24,7 @@
 	        </ul>
       	</div>
 		
-		      	<h2>Apache Commons Pool 2.4.1 Reference</h2>
+		      	<h2>Apache Commons Pool 2.4.2 Reference</h2>
 
 		<table class="summary">
         	<thead>

Modified: websites/production/commons/content/proper/commons-pool/xref/index.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/index.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/index.html Sun Aug  2 15:46:18 2015
@@ -4,7 +4,7 @@
 <!-- this is a JXR report set -->
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference</title>
+		<title>Apache Commons Pool 2.4.2 Reference</title>
 	</head>
     <frameset cols="20%,80%">
 		<frameset rows="30%,70%">

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/BaseObjectPoolConfig.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/BaseObjectPoolConfig.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/BaseObjectPoolConfig.html Sun Aug  2 15:46:18 2015
@@ -197,7 +197,7 @@
 <a class="jxr_linenumber" name="L189" href="#L189">189</a>     <em class="jxr_comment">// TODO Consider changing this to a single property for 3.x</em>
 <a class="jxr_linenumber" name="L190" href="#L190">190</a>     <strong class="jxr_keyword">private</strong> String jmxNamePrefix = DEFAULT_JMX_NAME_PREFIX;
 <a class="jxr_linenumber" name="L191" href="#L191">191</a> 
-<a class="jxr_linenumber" name="L192" href="#L192">192</a>     <strong class="jxr_keyword">private</strong> String jmxNameBase = DEFAULT_JMX_NAME_PREFIX;
+<a class="jxr_linenumber" name="L192" href="#L192">192</a>     <strong class="jxr_keyword">private</strong> String jmxNameBase = DEFAULT_JMX_NAME_BASE;
 <a class="jxr_linenumber" name="L193" href="#L193">193</a> 
 <a class="jxr_linenumber" name="L194" href="#L194">194</a> 
 <a class="jxr_linenumber" name="L195" href="#L195">195</a>     <em class="jxr_javadoccomment">/**</em>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/DefaultPooledObject.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/DefaultPooledObject.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/DefaultPooledObject.html Sun Aug  2 15:46:18 2015
@@ -251,85 +251,91 @@
 <a class="jxr_linenumber" name="L243" href="#L243">243</a> 
 <a class="jxr_linenumber" name="L244" href="#L244">244</a>     @Override
 <a class="jxr_linenumber" name="L245" href="#L245">245</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> printStackTrace(PrintWriter writer) {
-<a class="jxr_linenumber" name="L246" href="#L246">246</a>         Exception borrowedByCopy = <strong class="jxr_keyword">this</strong>.borrowedBy;
-<a class="jxr_linenumber" name="L247" href="#L247">247</a>         <strong class="jxr_keyword">if</strong> (borrowedByCopy != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L248" href="#L248">248</a>             borrowedByCopy.printStackTrace(writer);
-<a class="jxr_linenumber" name="L249" href="#L249">249</a>         }
-<a class="jxr_linenumber" name="L250" href="#L250">250</a>         Exception usedByCopy = <strong class="jxr_keyword">this</strong>.usedBy;
-<a class="jxr_linenumber" name="L251" href="#L251">251</a>         <strong class="jxr_keyword">if</strong> (usedByCopy != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L252" href="#L252">252</a>             usedByCopy.printStackTrace(writer);
-<a class="jxr_linenumber" name="L253" href="#L253">253</a>         }
-<a class="jxr_linenumber" name="L254" href="#L254">254</a>     }
-<a class="jxr_linenumber" name="L255" href="#L255">255</a> 
-<a class="jxr_linenumber" name="L256" href="#L256">256</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L257" href="#L257">257</a> <em class="jxr_javadoccomment">     * Returns the state of this object.</em>
-<a class="jxr_linenumber" name="L258" href="#L258">258</a> <em class="jxr_javadoccomment">     * @return state</em>
-<a class="jxr_linenumber" name="L259" href="#L259">259</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L260" href="#L260">260</a>     @Override
-<a class="jxr_linenumber" name="L261" href="#L261">261</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <a href="../../../../../org/apache/commons/pool2/PooledObjectState.html">PooledObjectState</a> getState() {
-<a class="jxr_linenumber" name="L262" href="#L262">262</a>         <strong class="jxr_keyword">return</strong> state;
-<a class="jxr_linenumber" name="L263" href="#L263">263</a>     }
-<a class="jxr_linenumber" name="L264" href="#L264">264</a> 
-<a class="jxr_linenumber" name="L265" href="#L265">265</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L266" href="#L266">266</a> <em class="jxr_javadoccomment">     * Marks the pooled object as abandoned.</em>
-<a class="jxr_linenumber" name="L267" href="#L267">267</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L268" href="#L268">268</a>     @Override
-<a class="jxr_linenumber" name="L269" href="#L269">269</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> markAbandoned() {
-<a class="jxr_linenumber" name="L270" href="#L270">270</a>         state = PooledObjectState.ABANDONED;
-<a class="jxr_linenumber" name="L271" href="#L271">271</a>     }
-<a class="jxr_linenumber" name="L272" href="#L272">272</a> 
-<a class="jxr_linenumber" name="L273" href="#L273">273</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L274" href="#L274">274</a> <em class="jxr_javadoccomment">     * Marks the object as returning to the pool.</em>
-<a class="jxr_linenumber" name="L275" href="#L275">275</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L276" href="#L276">276</a>     @Override
-<a class="jxr_linenumber" name="L277" href="#L277">277</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> markReturning() {
-<a class="jxr_linenumber" name="L278" href="#L278">278</a>         state = PooledObjectState.RETURNING;
-<a class="jxr_linenumber" name="L279" href="#L279">279</a>     }
-<a class="jxr_linenumber" name="L280" href="#L280">280</a> 
-<a class="jxr_linenumber" name="L281" href="#L281">281</a>     @Override
-<a class="jxr_linenumber" name="L282" href="#L282">282</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setLogAbandoned(<strong class="jxr_keyword">boolean</strong> logAbandoned) {
-<a class="jxr_linenumber" name="L283" href="#L283">283</a>         <strong class="jxr_keyword">this</strong>.logAbandoned = logAbandoned;
-<a class="jxr_linenumber" name="L284" href="#L284">284</a>     }
-<a class="jxr_linenumber" name="L285" href="#L285">285</a> 
-<a class="jxr_linenumber" name="L286" href="#L286">286</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L287" href="#L287">287</a> <em class="jxr_javadoccomment">     * Used to track how an object was obtained from the pool (the stack trace</em>
-<a class="jxr_linenumber" name="L288" href="#L288">288</a> <em class="jxr_javadoccomment">     * of the exception will show which code borrowed the object) and when the</em>
-<a class="jxr_linenumber" name="L289" href="#L289">289</a> <em class="jxr_javadoccomment">     * object was borrowed.</em>
-<a class="jxr_linenumber" name="L290" href="#L290">290</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L291" href="#L291">291</a>     <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/pool2/impl/DefaultPooledObject.html">AbandonedObjectCreatedException</a> <strong class="jxr_keyword">extends</strong> Exception {
-<a class="jxr_linenumber" name="L292" href="#L292">292</a> 
-<a class="jxr_linenumber" name="L293" href="#L293">293</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> serialVersionUID = 7398692158058772916L;
-<a class="jxr_linenumber" name="L294" href="#L294">294</a> 
-<a class="jxr_linenumber" name="L295" href="#L295">295</a>         <em class="jxr_javadoccomment">/** Date format */</em>
-<a class="jxr_linenumber" name="L296" href="#L296">296</a>         <em class="jxr_comment">//@GuardedBy("format")</em>
-<a class="jxr_linenumber" name="L297" href="#L297">297</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> SimpleDateFormat format = <strong class="jxr_keyword">new</strong> SimpleDateFormat
-<a class="jxr_linenumber" name="L298" href="#L298">298</a>             (<span class="jxr_string">"'Pooled object created' yyyy-MM-dd HH:mm:ss Z "</span> +
-<a class="jxr_linenumber" name="L299" href="#L299">299</a>              <span class="jxr_string">"'by the following code has not been returned to the pool:'"</span>);
+<a class="jxr_linenumber" name="L246" href="#L246">246</a>         <strong class="jxr_keyword">boolean</strong> written = false;
+<a class="jxr_linenumber" name="L247" href="#L247">247</a>         Exception borrowedByCopy = <strong class="jxr_keyword">this</strong>.borrowedBy;
+<a class="jxr_linenumber" name="L248" href="#L248">248</a>         <strong class="jxr_keyword">if</strong> (borrowedByCopy != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L249" href="#L249">249</a>             borrowedByCopy.printStackTrace(writer);
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>             written = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L251" href="#L251">251</a>         }
+<a class="jxr_linenumber" name="L252" href="#L252">252</a>         Exception usedByCopy = <strong class="jxr_keyword">this</strong>.usedBy;
+<a class="jxr_linenumber" name="L253" href="#L253">253</a>         <strong class="jxr_keyword">if</strong> (usedByCopy != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L254" href="#L254">254</a>             usedByCopy.printStackTrace(writer);
+<a class="jxr_linenumber" name="L255" href="#L255">255</a>             written = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L256" href="#L256">256</a>         }
+<a class="jxr_linenumber" name="L257" href="#L257">257</a>         <strong class="jxr_keyword">if</strong> (written) {
+<a class="jxr_linenumber" name="L258" href="#L258">258</a>             writer.flush();
+<a class="jxr_linenumber" name="L259" href="#L259">259</a>         }
+<a class="jxr_linenumber" name="L260" href="#L260">260</a>     }
+<a class="jxr_linenumber" name="L261" href="#L261">261</a> 
+<a class="jxr_linenumber" name="L262" href="#L262">262</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L263" href="#L263">263</a> <em class="jxr_javadoccomment">     * Returns the state of this object.</em>
+<a class="jxr_linenumber" name="L264" href="#L264">264</a> <em class="jxr_javadoccomment">     * @return state</em>
+<a class="jxr_linenumber" name="L265" href="#L265">265</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L266" href="#L266">266</a>     @Override
+<a class="jxr_linenumber" name="L267" href="#L267">267</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <a href="../../../../../org/apache/commons/pool2/PooledObjectState.html">PooledObjectState</a> getState() {
+<a class="jxr_linenumber" name="L268" href="#L268">268</a>         <strong class="jxr_keyword">return</strong> state;
+<a class="jxr_linenumber" name="L269" href="#L269">269</a>     }
+<a class="jxr_linenumber" name="L270" href="#L270">270</a> 
+<a class="jxr_linenumber" name="L271" href="#L271">271</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L272" href="#L272">272</a> <em class="jxr_javadoccomment">     * Marks the pooled object as abandoned.</em>
+<a class="jxr_linenumber" name="L273" href="#L273">273</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L274" href="#L274">274</a>     @Override
+<a class="jxr_linenumber" name="L275" href="#L275">275</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> markAbandoned() {
+<a class="jxr_linenumber" name="L276" href="#L276">276</a>         state = PooledObjectState.ABANDONED;
+<a class="jxr_linenumber" name="L277" href="#L277">277</a>     }
+<a class="jxr_linenumber" name="L278" href="#L278">278</a> 
+<a class="jxr_linenumber" name="L279" href="#L279">279</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L280" href="#L280">280</a> <em class="jxr_javadoccomment">     * Marks the object as returning to the pool.</em>
+<a class="jxr_linenumber" name="L281" href="#L281">281</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L282" href="#L282">282</a>     @Override
+<a class="jxr_linenumber" name="L283" href="#L283">283</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> markReturning() {
+<a class="jxr_linenumber" name="L284" href="#L284">284</a>         state = PooledObjectState.RETURNING;
+<a class="jxr_linenumber" name="L285" href="#L285">285</a>     }
+<a class="jxr_linenumber" name="L286" href="#L286">286</a> 
+<a class="jxr_linenumber" name="L287" href="#L287">287</a>     @Override
+<a class="jxr_linenumber" name="L288" href="#L288">288</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setLogAbandoned(<strong class="jxr_keyword">boolean</strong> logAbandoned) {
+<a class="jxr_linenumber" name="L289" href="#L289">289</a>         <strong class="jxr_keyword">this</strong>.logAbandoned = logAbandoned;
+<a class="jxr_linenumber" name="L290" href="#L290">290</a>     }
+<a class="jxr_linenumber" name="L291" href="#L291">291</a> 
+<a class="jxr_linenumber" name="L292" href="#L292">292</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L293" href="#L293">293</a> <em class="jxr_javadoccomment">     * Used to track how an object was obtained from the pool (the stack trace</em>
+<a class="jxr_linenumber" name="L294" href="#L294">294</a> <em class="jxr_javadoccomment">     * of the exception will show which code borrowed the object) and when the</em>
+<a class="jxr_linenumber" name="L295" href="#L295">295</a> <em class="jxr_javadoccomment">     * object was borrowed.</em>
+<a class="jxr_linenumber" name="L296" href="#L296">296</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L297" href="#L297">297</a>     <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/pool2/impl/DefaultPooledObject.html">AbandonedObjectCreatedException</a> <strong class="jxr_keyword">extends</strong> Exception {
+<a class="jxr_linenumber" name="L298" href="#L298">298</a> 
+<a class="jxr_linenumber" name="L299" href="#L299">299</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> serialVersionUID = 7398692158058772916L;
 <a class="jxr_linenumber" name="L300" href="#L300">300</a> 
-<a class="jxr_linenumber" name="L301" href="#L301">301</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> _createdTime;
-<a class="jxr_linenumber" name="L302" href="#L302">302</a> 
-<a class="jxr_linenumber" name="L303" href="#L303">303</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L304" href="#L304">304</a> <em class="jxr_javadoccomment">         * Create a new instance.</em>
-<a class="jxr_linenumber" name="L305" href="#L305">305</a> <em class="jxr_javadoccomment">         * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L306" href="#L306">306</a> <em class="jxr_javadoccomment">         * @see Exception#Exception()</em>
-<a class="jxr_linenumber" name="L307" href="#L307">307</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="L308" href="#L308">308</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/pool2/impl/DefaultPooledObject.html">AbandonedObjectCreatedException</a>() {
-<a class="jxr_linenumber" name="L309" href="#L309">309</a>             <strong class="jxr_keyword">super</strong>();
-<a class="jxr_linenumber" name="L310" href="#L310">310</a>             _createdTime = System.currentTimeMillis();
-<a class="jxr_linenumber" name="L311" href="#L311">311</a>         }
-<a class="jxr_linenumber" name="L312" href="#L312">312</a> 
-<a class="jxr_linenumber" name="L313" href="#L313">313</a>         <em class="jxr_comment">// Override getMessage to avoid creating objects and formatting</em>
-<a class="jxr_linenumber" name="L314" href="#L314">314</a>         <em class="jxr_comment">// dates unless the log message will actually be used.</em>
-<a class="jxr_linenumber" name="L315" href="#L315">315</a>         @Override
-<a class="jxr_linenumber" name="L316" href="#L316">316</a>         <strong class="jxr_keyword">public</strong> String getMessage() {
-<a class="jxr_linenumber" name="L317" href="#L317">317</a>             String msg;
-<a class="jxr_linenumber" name="L318" href="#L318">318</a>             <strong class="jxr_keyword">synchronized</strong>(format) {
-<a class="jxr_linenumber" name="L319" href="#L319">319</a>                 msg = format.format(<strong class="jxr_keyword">new</strong> Date(_createdTime));
-<a class="jxr_linenumber" name="L320" href="#L320">320</a>             }
-<a class="jxr_linenumber" name="L321" href="#L321">321</a>             <strong class="jxr_keyword">return</strong> msg;
-<a class="jxr_linenumber" name="L322" href="#L322">322</a>         }
-<a class="jxr_linenumber" name="L323" href="#L323">323</a>     }
-<a class="jxr_linenumber" name="L324" href="#L324">324</a> }
+<a class="jxr_linenumber" name="L301" href="#L301">301</a>         <em class="jxr_javadoccomment">/** Date format */</em>
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>         <em class="jxr_comment">//@GuardedBy("format")</em>
+<a class="jxr_linenumber" name="L303" href="#L303">303</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> SimpleDateFormat format = <strong class="jxr_keyword">new</strong> SimpleDateFormat
+<a class="jxr_linenumber" name="L304" href="#L304">304</a>             (<span class="jxr_string">"'Pooled object created' yyyy-MM-dd HH:mm:ss Z "</span> +
+<a class="jxr_linenumber" name="L305" href="#L305">305</a>              <span class="jxr_string">"'by the following code has not been returned to the pool:'"</span>);
+<a class="jxr_linenumber" name="L306" href="#L306">306</a> 
+<a class="jxr_linenumber" name="L307" href="#L307">307</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> _createdTime;
+<a class="jxr_linenumber" name="L308" href="#L308">308</a> 
+<a class="jxr_linenumber" name="L309" href="#L309">309</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L310" href="#L310">310</a> <em class="jxr_javadoccomment">         * Create a new instance.</em>
+<a class="jxr_linenumber" name="L311" href="#L311">311</a> <em class="jxr_javadoccomment">         * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L312" href="#L312">312</a> <em class="jxr_javadoccomment">         * @see Exception#Exception()</em>
+<a class="jxr_linenumber" name="L313" href="#L313">313</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="L314" href="#L314">314</a>         <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/pool2/impl/DefaultPooledObject.html">AbandonedObjectCreatedException</a>() {
+<a class="jxr_linenumber" name="L315" href="#L315">315</a>             <strong class="jxr_keyword">super</strong>();
+<a class="jxr_linenumber" name="L316" href="#L316">316</a>             _createdTime = System.currentTimeMillis();
+<a class="jxr_linenumber" name="L317" href="#L317">317</a>         }
+<a class="jxr_linenumber" name="L318" href="#L318">318</a> 
+<a class="jxr_linenumber" name="L319" href="#L319">319</a>         <em class="jxr_comment">// Override getMessage to avoid creating objects and formatting</em>
+<a class="jxr_linenumber" name="L320" href="#L320">320</a>         <em class="jxr_comment">// dates unless the log message will actually be used.</em>
+<a class="jxr_linenumber" name="L321" href="#L321">321</a>         @Override
+<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">public</strong> String getMessage() {
+<a class="jxr_linenumber" name="L323" href="#L323">323</a>             String msg;
+<a class="jxr_linenumber" name="L324" href="#L324">324</a>             <strong class="jxr_keyword">synchronized</strong>(format) {
+<a class="jxr_linenumber" name="L325" href="#L325">325</a>                 msg = format.format(<strong class="jxr_keyword">new</strong> Date(_createdTime));
+<a class="jxr_linenumber" name="L326" href="#L326">326</a>             }
+<a class="jxr_linenumber" name="L327" href="#L327">327</a>             <strong class="jxr_keyword">return</strong> msg;
+<a class="jxr_linenumber" name="L328" href="#L328">328</a>         }
+<a class="jxr_linenumber" name="L329" href="#L329">329</a>     }
+<a class="jxr_linenumber" name="L330" href="#L330">330</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2001&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.impl</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.impl</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/impl/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.impl</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.impl</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.proxy</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.proxy</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/org/apache/commons/pool2/proxy/package-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference Package org.apache.commons.pool2.proxy</title>
+		<title>Apache Commons Pool 2.4.2 Reference Package org.apache.commons.pool2.proxy</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/overview-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/overview-frame.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/overview-frame.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference</title>
+		<title>Apache Commons Pool 2.4.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/commons/content/proper/commons-pool/xref/overview-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/xref/overview-summary.html (original)
+++ websites/production/commons/content/proper/commons-pool/xref/overview-summary.html Sun Aug  2 15:46:18 2015
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache Commons Pool 2.4.1 Reference</title>
+		<title>Apache Commons Pool 2.4.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -24,7 +24,7 @@
 	        </ul>
       	</div>
 		
-		      	<h2>Apache Commons Pool 2.4.1 Reference</h2>
+		      	<h2>Apache Commons Pool 2.4.2 Reference</h2>
 
 		<table class="summary">
         	<thead>



Mime
View raw message