⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 generickeyedobjectpoolfactory.html

📁 优秀的文档,可以学习java之用 0006728337 00000 n 0006728424 00000 n 0006728600 00000 n
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="54" href="#54">54</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle) {<a name="55" href="#55">55</a>          <strong>this</strong>(factory,maxActive,whenExhaustedAction,maxWait,maxIdle, GenericKeyedObjectPool.DEFAULT_MAX_TOTAL,GenericKeyedObjectPool.DEFAULT_TEST_ON_BORROW,GenericKeyedObjectPool.DEFAULT_TEST_ON_RETURN,GenericKeyedObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericKeyedObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericKeyedObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericKeyedObjectPool.DEFAULT_TEST_WHILE_IDLE);<a name="56" href="#56">56</a>      }<a name="57" href="#57">57</a>  <a name="58" href="#58">58</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle, <strong>int</strong> maxTotal) {<a name="59" href="#59">59</a>          <strong>this</strong>(factory,maxActive,whenExhaustedAction,maxWait,maxIdle, maxTotal, GenericKeyedObjectPool.DEFAULT_TEST_ON_BORROW,GenericKeyedObjectPool.DEFAULT_TEST_ON_RETURN,GenericKeyedObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericKeyedObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericKeyedObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericKeyedObjectPool.DEFAULT_TEST_WHILE_IDLE);<a name="60" href="#60">60</a>      }<a name="61" href="#61">61</a>  <a name="62" href="#62">62</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle, <strong>boolean</strong> testOnBorrow, <strong>boolean</strong> testOnReturn) {<a name="63" href="#63">63</a>          <strong>this</strong>(factory,maxActive,whenExhaustedAction,maxWait,maxIdle, GenericKeyedObjectPool.DEFAULT_MAX_TOTAL,testOnBorrow,testOnReturn,GenericKeyedObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,GenericKeyedObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN,GenericKeyedObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,GenericKeyedObjectPool.DEFAULT_TEST_WHILE_IDLE);<a name="64" href="#64">64</a>      }<a name="65" href="#65">65</a>  <a name="66" href="#66">66</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle, <strong>boolean</strong> testOnBorrow, <strong>boolean</strong> testOnReturn, <strong>long</strong> timeBetweenEvictionRunsMillis, <strong>int</strong> numTestsPerEvictionRun, <strong>long</strong> minEvictableIdleTimeMillis, <strong>boolean</strong> testWhileIdle) {<a name="67" href="#67">67</a>          <strong>this</strong>(factory, maxActive, whenExhaustedAction, maxWait, maxIdle, GenericKeyedObjectPool.DEFAULT_MAX_TOTAL, testOnBorrow, testOnReturn, timeBetweenEvictionRunsMillis, numTestsPerEvictionRun, minEvictableIdleTimeMillis, testWhileIdle);<a name="68" href="#68">68</a>      }<a name="69" href="#69">69</a>  <a name="70" href="#70">70</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle, <strong>int</strong> maxTotal, <strong>boolean</strong> testOnBorrow, <strong>boolean</strong> testOnReturn, <strong>long</strong> timeBetweenEvictionRunsMillis, <strong>int</strong> numTestsPerEvictionRun, <strong>long</strong> minEvictableIdleTimeMillis, <strong>boolean</strong> testWhileIdle) {<a name="71" href="#71">71</a>          <strong>this</strong>(factory, maxActive, whenExhaustedAction, maxWait, maxIdle, maxTotal, GenericKeyedObjectPool.DEFAULT_MIN_IDLE , testOnBorrow, testOnReturn, timeBetweenEvictionRunsMillis, numTestsPerEvictionRun, minEvictableIdleTimeMillis, testWhileIdle);<a name="72" href="#72">72</a>      }<a name="73" href="#73">73</a>  <a name="74" href="#74">74</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html">GenericKeyedObjectPoolFactory</a>(<a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> factory, <strong>int</strong> maxActive, byte whenExhaustedAction, <strong>long</strong> maxWait, <strong>int</strong> maxIdle, <strong>int</strong> maxTotal, <strong>int</strong> minIdle, <strong>boolean</strong> testOnBorrow, <strong>boolean</strong> testOnReturn, <strong>long</strong> timeBetweenEvictionRunsMillis, <strong>int</strong> numTestsPerEvictionRun, <strong>long</strong> minEvictableIdleTimeMillis, <strong>boolean</strong> testWhileIdle) {<a name="75" href="#75">75</a>          _maxIdle = maxIdle;<a name="76" href="#76">76</a>          _maxActive = maxActive;<a name="77" href="#77">77</a>          _maxTotal = maxTotal;<a name="78" href="#78">78</a>          _minIdle = minIdle;<a name="79" href="#79">79</a>          _maxWait = maxWait;<a name="80" href="#80">80</a>          _whenExhaustedAction = whenExhaustedAction;<a name="81" href="#81">81</a>          _testOnBorrow = testOnBorrow;<a name="82" href="#82">82</a>          _testOnReturn = testOnReturn;<a name="83" href="#83">83</a>          _testWhileIdle = testWhileIdle;<a name="84" href="#84">84</a>          _timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;<a name="85" href="#85">85</a>          _numTestsPerEvictionRun = numTestsPerEvictionRun;<a name="86" href="#86">86</a>          _minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;<a name="87" href="#87">87</a>          _factory = factory;<a name="88" href="#88">88</a>      }<a name="89" href="#89">89</a>  <a name="90" href="#90">90</a>      <strong>public</strong> <a href="../../../../../org/apache/commons/pool/KeyedObjectPool.html">KeyedObjectPool</a> createPool() {<a name="91" href="#91">91</a>          <strong>return</strong> <strong>new</strong> <a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPool.html">GenericKeyedObjectPool</a>(_factory,_maxActive,_whenExhaustedAction,_maxWait,_maxIdle,_maxTotal,_minIdle,_testOnBorrow,_testOnReturn,_timeBetweenEvictionRunsMillis,_numTestsPerEvictionRun,_minEvictableIdleTimeMillis,_testWhileIdle);<a name="92" href="#92">92</a>      }<a name="93" href="#93">93</a>  <a name="94" href="#94">94</a>      <em class="comment">//--- protected attributes ---------------------------------------</em><a name="95" href="#95">95</a>  <a name="96" href="#96">96</a>      <strong>protected</strong> <strong>int</strong> _maxIdle = GenericKeyedObjectPool.DEFAULT_MAX_IDLE;<a name="97" href="#97">97</a>      <strong>protected</strong> <strong>int</strong> _maxActive = GenericKeyedObjectPool.DEFAULT_MAX_ACTIVE;<a name="98" href="#98">98</a>      <strong>protected</strong> <strong>int</strong> _maxTotal = GenericKeyedObjectPool.DEFAULT_MAX_TOTAL;<a name="99" href="#99">99</a>      <strong>protected</strong> <strong>int</strong> _minIdle = GenericKeyedObjectPool.DEFAULT_MIN_IDLE;<a name="100" href="#100">100</a>     <strong>protected</strong> <strong>long</strong> _maxWait = GenericKeyedObjectPool.DEFAULT_MAX_WAIT;<a name="101" href="#101">101</a>     <strong>protected</strong> byte _whenExhaustedAction = GenericKeyedObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION;<a name="102" href="#102">102</a>     <strong>protected</strong> <strong>boolean</strong> _testOnBorrow = GenericKeyedObjectPool.DEFAULT_TEST_ON_BORROW;<a name="103" href="#103">103</a>     <strong>protected</strong> <strong>boolean</strong> _testOnReturn = GenericKeyedObjectPool.DEFAULT_TEST_ON_RETURN;<a name="104" href="#104">104</a>     <strong>protected</strong> <strong>boolean</strong> _testWhileIdle = GenericKeyedObjectPool.DEFAULT_TEST_WHILE_IDLE;<a name="105" href="#105">105</a>     <strong>protected</strong> <strong>long</strong> _timeBetweenEvictionRunsMillis = GenericKeyedObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS;<a name="106" href="#106">106</a>     <strong>protected</strong> <strong>int</strong> _numTestsPerEvictionRun =  GenericKeyedObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN;<a name="107" href="#107">107</a>     <strong>protected</strong> <strong>long</strong> _minEvictableIdleTimeMillis = GenericKeyedObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS;<a name="108" href="#108">108</a>     <strong>protected</strong> <a href="../../../../../org/apache/commons/pool/KeyedPoolableObjectFactory.html">KeyedPoolableObjectFactory</a> _factory = <strong>null</strong>;<a name="109" href="#109">109</a> <a name="110" href="#110">110</a> }</pre><hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -