/usr/share/doc/libcommons-pool-java/api/org/apache/commons/pool/impl/GenericObjectPool.html is in libcommons-pool-java-doc 1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_21) on Fri May 24 11:14:13 UTC 2013 -->
<title>GenericObjectPool (Apache Commons Object Pooling Package)</title>
<meta name="date" content="2013-05-24">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="GenericObjectPool (Apache Commons Object Pooling Package)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html" title="class in org.apache.commons.pool.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/pool/impl/GenericObjectPool.html" target="_top">Frames</a></li>
<li><a href="GenericObjectPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.pool.impl</div>
<h2 title="Class GenericObjectPool" class="title">Class GenericObjectPool<T></h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">org.apache.commons.pool.BaseObjectPool</a><T></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.pool.impl.GenericObjectPool<T></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the type of objects held in this pool</dd></dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><T></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">GenericObjectPool<T></span>
extends <a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><T>
implements <a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><T></pre>
<div class="block">A configurable <a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool"><code>ObjectPool</code></a> implementation.
<p>
When coupled with the appropriate <a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool"><code>PoolableObjectFactory</code></a>,
<tt>GenericObjectPool</tt> provides robust pooling functionality for
arbitrary objects.
<p>
A <tt>GenericObjectPool</tt> provides a number of configurable parameters:
<ul>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code><i>maxActive</i></code></a> controls the maximum number of
objects that can be allocated by the pool (checked out to clients, or
idle awaiting checkout) at a given time. When non-positive, there is no
limit to the number of objects that can be managed by the pool at one time.
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code><i>maxActive</i></code></a> is reached, the pool is said
to be exhausted. The default setting for this parameter is 8.
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code><i>maxIdle</i></code></a> controls the maximum number of objects
that can sit idle in the pool at any time. When negative, there is no
limit to the number of objects that may be idle at one time. The default
setting for this parameter is 8.
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code><i>whenExhaustedAction</i></code></a> specifies the
behavior of the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method when the pool is exhausted:
<ul>
<li>
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code><i>whenExhaustedAction</i></code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> will throw
a <a href="/usr/share/doc/default-jdk-doc/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a>
</li>
<li>
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code><i>whenExhaustedAction</i></code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a>, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> will create a new
object and return it (essentially making <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code><i>maxActive</i></code></a>
meaningless.)
</li>
<li>
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code><i>whenExhaustedAction</i></code></a>
is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> will block
(invoke <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang"><code>Object.wait()</code></a>) until a new or idle object is available.
If a positive <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code><i>maxWait</i></code></a>
value is supplied, then <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> will block for at
most that many milliseconds, after which a <a href="/usr/share/doc/default-jdk-doc/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a>
will be thrown. If <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code><i>maxWait</i></code></a> is non-positive,
the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method will block indefinitely.
</li>
</ul>
The default <code>whenExhaustedAction</code> setting is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> and the default <code>maxWait</code>
setting is -1. By default, therefore, <code>borrowObject</code> will
block indefinitely until an idle instance becomes available.
</li>
<li>
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code><i>testOnBorrow</i></code></a> is set, the pool will
attempt to validate each object before it is returned from the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method. (Using the provided factory's
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>PoolableObjectFactory.validateObject(T)</code></a> method.) Objects that fail
to validate will be dropped from the pool, and a different object will
be borrowed. The default setting for this parameter is
<code>false.</code>
</li>
<li>
When <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code><i>testOnReturn</i></code></a> is set, the pool will
attempt to validate each object before it is returned to the pool in the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a> method. (Using the provided factory's
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>PoolableObjectFactory.validateObject(T)</code></a>
method.) Objects that fail to validate will be dropped from the pool.
The default setting for this parameter is <code>false.</code>
</li>
</ul>
<p>
Optionally, one may configure the pool to examine and possibly evict objects
as they sit idle in the pool and to ensure that a minimum number of idle
objects are available. This is performed by an "idle object eviction"
thread, which runs asynchronously. Caution should be used when configuring
this optional feature. Eviction runs contend with client threads for access
to objects in the pool, so if they run too frequently performance issues may
result. The idle object eviction thread may be configured using the following
attributes:
<ul>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code><i>timeBetweenEvictionRunsMillis</i></code></a>
indicates how long the eviction thread should sleep before "runs" of examining
idle objects. When non-positive, no eviction thread will be launched. The
default setting for this parameter is -1 (i.e., idle object eviction is
disabled by default).
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code><i>minEvictableIdleTimeMillis</i></code></a>
specifies the minimum amount of time that an object may sit idle in the pool
before it is eligible for eviction due to idle time. When non-positive, no object
will be dropped from the pool due to idle time alone. This setting has no
effect unless <code>timeBetweenEvictionRunsMillis > 0.</code> The default
setting for this parameter is 30 minutes.
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code><i>testWhileIdle</i></code></a> indicates whether or not idle
objects should be validated using the factory's
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>PoolableObjectFactory.validateObject(T)</code></a> method. Objects that fail to
validate will be dropped from the pool. This setting has no effect unless
<code>timeBetweenEvictionRunsMillis > 0.</code> The default setting for
this parameter is <code>false.</code>
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)"><code><i>softMinEvictableIdleTimeMillis</i></code></a>
specifies the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any), with the extra condition that at least "minIdle" object instances
remain in the pool. When non-positive, no objects will be evicted from the pool
due to idle time alone. This setting has no effect unless
<code>timeBetweenEvictionRunsMillis > 0.</code> and it is superceded by
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code><i>minEvictableIdleTimeMillis</i></code></a>
(that is, if <code>minEvictableIdleTimeMillis</code> is positive, then
<code>softMinEvictableIdleTimeMillis</code> is ignored). The default setting for
this parameter is -1 (disabled).
</li>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code><i>numTestsPerEvictionRun</i></code></a>
determines the number of objects examined in each run of the idle object
evictor. This setting has no effect unless
<code>timeBetweenEvictionRunsMillis > 0.</code> The default setting for
this parameter is 3.
</li>
</ul>
<p>
<p>
The pool can be configured to behave as a LIFO queue with respect to idle
objects - always returning the most recently used object from the pool,
or as a FIFO queue, where borrowObject always returns the oldest object
in the idle object pool.
<ul>
<li>
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setLifo(boolean)"><code><i>lifo</i></code></a>
determines whether or not the pool returns idle objects in
last-in-first-out order. The default setting for this parameter is
<code>true.</code>
</li>
</ul>
<p>
GenericObjectPool is not usable without a <a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool"><code>PoolableObjectFactory</code></a>. A
non-<code>null</code> factory must be provided either as a constructor argument
or via a call to <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setFactory(org.apache.commons.pool.PoolableObjectFactory)"><code>setFactory(org.apache.commons.pool.PoolableObjectFactory<T>)</code></a> before the pool is used.
<p>
Implementation note: To prevent possible deadlocks, care has been taken to
ensure that no call to a factory method will occur within a synchronization
block. See POOL-125 and DBCP-44 for more information.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Pool 1.0</dd>
<dt><span class="strong">Version:</span></dt>
<dd>$Revision: 1222396 $ $Date: 2011-12-22 14:02:25 -0500 (Thu, 22 Dec 2011) $</dd>
<dt><span class="strong">Author:</span></dt>
<dd>Rodney Waldhoff, Dirk Verbeeck, Sandy McArthur</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPool.html" title="class in org.apache.commons.pool.impl"><code>GenericKeyedObjectPool</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl">GenericObjectPool.Config</a></strong></code>
<div class="block">A simple "struct" encapsulating the
configuration information for a <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="class in org.apache.commons.pool.impl"><code>GenericObjectPool</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_LIFO">DEFAULT_LIFO</a></strong></code>
<div class="block">The default LIFO status.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_MAX_ACTIVE">DEFAULT_MAX_ACTIVE</a></strong></code>
<div class="block">The default cap on the total number of active instances from the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_MAX_IDLE">DEFAULT_MAX_IDLE</a></strong></code>
<div class="block">The default cap on the number of "sleeping" instances in the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_MAX_WAIT">DEFAULT_MAX_WAIT</a></strong></code>
<div class="block">The default maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS">DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS</a></strong></code>
<div class="block">The default value for <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinEvictableIdleTimeMillis()"><code>getMinEvictableIdleTimeMillis()</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_MIN_IDLE">DEFAULT_MIN_IDLE</a></strong></code>
<div class="block">The default minimum number of "sleeping" instances in the pool
before before the evictor thread (if active) spawns new objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_NUM_TESTS_PER_EVICTION_RUN">DEFAULT_NUM_TESTS_PER_EVICTION_RUN</a></strong></code>
<div class="block">The default number of objects to examine per run in the
idle object evictor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS">DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS</a></strong></code>
<div class="block">The default value for <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getSoftMinEvictableIdleTimeMillis()"><code>getSoftMinEvictableIdleTimeMillis()</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_TEST_ON_BORROW">DEFAULT_TEST_ON_BORROW</a></strong></code>
<div class="block">The default "test on borrow" value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_TEST_ON_RETURN">DEFAULT_TEST_ON_RETURN</a></strong></code>
<div class="block">The default "test on return" value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_TEST_WHILE_IDLE">DEFAULT_TEST_WHILE_IDLE</a></strong></code>
<div class="block">The default "test while idle" value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS">DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS</a></strong></code>
<div class="block">The default "time between eviction runs" value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#DEFAULT_WHEN_EXHAUSTED_ACTION">DEFAULT_WHEN_EXHAUSTED_ACTION</a></strong></code>
<div class="block">The default "when exhausted action" for the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK">WHEN_EXHAUSTED_BLOCK</a></strong></code>
<div class="block">A "when exhausted action" type indicating that when the pool
is exhausted (i.e., the maximum number
of active objects has been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should block until a new object is available, or the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>maximum wait time</code></a> has been reached.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL">WHEN_EXHAUSTED_FAIL</a></strong></code>
<div class="block">A "when exhausted action" type indicating that when the pool is
exhausted (i.e., the maximum number of active objects has
been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should fail, throwing a <a href="/usr/share/doc/default-jdk-doc/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW">WHEN_EXHAUSTED_GROW</a></strong></code>
<div class="block">A "when exhausted action" type indicating that when the pool is
exhausted (i.e., the maximum number
of active objects has been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should simply create a new object anyway.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool()">GenericObjectPool</a></strong>()</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> with default properties.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified factory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, org.apache.commons.pool.impl.GenericObjectPool.Config)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl">GenericObjectPool.Config</a> config)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, boolean, boolean)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, boolean, boolean)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, boolean, boolean, long, int, long, boolean)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean, long)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean, long, boolean)">GenericObjectPool</a></strong>(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis,
boolean lifo)</code>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#addObject()">addObject</a></strong>()</code>
<div class="block">Create an object, and place it into the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()">borrowObject</a></strong>()</code>
<div class="block">Borrows an object from the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#clear()">clear</a></strong>()</code>
<div class="block">Clears any objects sitting idle in the pool by removing them from the
idle instance pool and then invoking the configured
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#destroyObject(T)"><code>PoolableObjectFactory.destroyObject(Object)</code></a> method on each idle
instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#close()">close</a></strong>()</code>
<div class="block">Closes the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#evict()">evict</a></strong>()</code>
<div class="block">Perform <code>numTests</code> idle object eviction tests, evicting
examined objects that meet the criteria for eviction.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getLifo()">getLifo</a></strong>()</code>
<div class="block">Whether or not the idle object pool acts as a LIFO queue.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxActive()">getMaxActive</a></strong>()</code>
<div class="block">Returns the maximum number of objects that can be allocated by the pool
(checked out to clients, or idle awaiting checkout) at a given time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()">getMaxIdle</a></strong>()</code>
<div class="block">Returns the cap on the number of "idle" instances in the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()">getMaxWait</a></strong>()</code>
<div class="block">Returns the maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinEvictableIdleTimeMillis()">getMinEvictableIdleTimeMillis</a></strong>()</code>
<div class="block">Returns the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinIdle()">getMinIdle</a></strong>()</code>
<div class="block">Returns the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumActive()">getNumActive</a></strong>()</code>
<div class="block">Return the number of instances currently borrowed from this pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumIdle()">getNumIdle</a></strong>()</code>
<div class="block">Return the number of instances currently idle in this pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumTestsPerEvictionRun()">getNumTestsPerEvictionRun</a></strong>()</code>
<div class="block">Returns the max number of objects to examine during each run of the
idle object evictor thread (if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getSoftMinEvictableIdleTimeMillis()">getSoftMinEvictableIdleTimeMillis</a></strong>()</code>
<div class="block">Returns the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" amount of object remain in the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()">getTestOnBorrow</a></strong>()</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()">getTestOnReturn</a></strong>()</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned to the pool within the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestWhileIdle()">getTestWhileIdle</a></strong>()</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
by the idle object evictor (if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()">getTimeBetweenEvictionRunsMillis</a></strong>()</code>
<div class="block">Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()">getWhenExhaustedAction</a></strong>()</code>
<div class="block">Returns the action to take when the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#invalidateObject(T)">invalidateObject</a></strong>(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a> obj)</code>
<div class="block">Invalidates an object from the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)">returnObject</a></strong>(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a> obj)</code>
<div class="block">Returns an object instance to the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setConfig(org.apache.commons.pool.impl.GenericObjectPool.Config)">setConfig</a></strong>(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl">GenericObjectPool.Config</a> conf)</code>
<div class="block">Sets my configuration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setLifo(boolean)">setLifo</a></strong>(boolean lifo)</code>
<div class="block">Sets the LIFO property of the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)">setMaxActive</a></strong>(int maxActive)</code>
<div class="block">Sets the cap on the number of objects that can be allocated by the pool
(checked out to clients, or idle awaiting checkout) at a given time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)">setMaxIdle</a></strong>(int maxIdle)</code>
<div class="block">Sets the cap on the number of "idle" instances in the pool.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)">setMaxWait</a></strong>(long maxWait)</code>
<div class="block">Sets the maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)">setMinEvictableIdleTimeMillis</a></strong>(long minEvictableIdleTimeMillis)</code>
<div class="block">Sets the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)">setMinIdle</a></strong>(int minIdle)</code>
<div class="block">Sets the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)">setNumTestsPerEvictionRun</a></strong>(int numTestsPerEvictionRun)</code>
<div class="block">Sets the max number of objects to examine during each run of the
idle object evictor thread (if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)">setSoftMinEvictableIdleTimeMillis</a></strong>(long softMinEvictableIdleTimeMillis)</code>
<div class="block">Sets the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" object instances remain in the pool.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)">setTestOnBorrow</a></strong>(boolean testOnBorrow)</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)">setTestOnReturn</a></strong>(boolean testOnReturn)</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned to the pool within the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)">setTestWhileIdle</a></strong>(boolean testWhileIdle)</code>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
by the idle object evictor (if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)">setTimeBetweenEvictionRunsMillis</a></strong>(long timeBetweenEvictionRunsMillis)</code>
<div class="block">Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)">setWhenExhaustedAction</a></strong>(byte whenExhaustedAction)</code>
<div class="block">Sets the action to take when the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.pool.BaseObjectPool">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.commons.pool.<a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a></h3>
<code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#isClosed()">isClosed</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DEFAULT_LIFO">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_LIFO</h4>
<pre>public static final boolean DEFAULT_LIFO</pre>
<div class="block">The default LIFO status. True means that borrowObject returns the
most recently used ("last in") idle object in the pool (if there are
idle instances available). False means that the pool behaves as a FIFO
queue - objects are taken from the idle object pool in the order that
they are returned to the pool.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>1.4</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setLifo(boolean)"><code>setLifo(boolean)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_LIFO">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MAX_ACTIVE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAX_ACTIVE</h4>
<pre>public static final int DEFAULT_MAX_ACTIVE</pre>
<div class="block">The default cap on the total number of active instances from the pool.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxActive()"><code>getMaxActive()</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_ACTIVE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MAX_IDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAX_IDLE</h4>
<pre>public static final int DEFAULT_MAX_IDLE</pre>
<div class="block">The default cap on the number of "sleeping" instances in the pool.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><code>getMaxIdle()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_IDLE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MAX_WAIT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAX_WAIT</h4>
<pre>public static final long DEFAULT_MAX_WAIT</pre>
<div class="block">The default maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_WAIT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS</h4>
<pre>public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS</pre>
<div class="block">The default value for <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinEvictableIdleTimeMillis()"><code>getMinEvictableIdleTimeMillis()</code></a>.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinEvictableIdleTimeMillis()"><code>getMinEvictableIdleTimeMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MIN_IDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MIN_IDLE</h4>
<pre>public static final int DEFAULT_MIN_IDLE</pre>
<div class="block">The default minimum number of "sleeping" instances in the pool
before before the evictor thread (if active) spawns new objects.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinIdle()"><code>getMinIdle()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><code>setMinIdle(int)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MIN_IDLE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_NUM_TESTS_PER_EVICTION_RUN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_NUM_TESTS_PER_EVICTION_RUN</h4>
<pre>public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN</pre>
<div class="block">The default number of objects to examine per run in the
idle object evictor.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumTestsPerEvictionRun()"><code>getNumTestsPerEvictionRun()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><code>getTimeBetweenEvictionRunsMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_NUM_TESTS_PER_EVICTION_RUN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS</h4>
<pre>public static final long DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS</pre>
<div class="block">The default value for <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getSoftMinEvictableIdleTimeMillis()"><code>getSoftMinEvictableIdleTimeMillis()</code></a>.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getSoftMinEvictableIdleTimeMillis()"><code>getSoftMinEvictableIdleTimeMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)"><code>setSoftMinEvictableIdleTimeMillis(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_TEST_ON_BORROW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_TEST_ON_BORROW</h4>
<pre>public static final boolean DEFAULT_TEST_ON_BORROW</pre>
<div class="block">The default "test on borrow" value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><code>getTestOnBorrow()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_ON_BORROW">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_TEST_ON_RETURN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_TEST_ON_RETURN</h4>
<pre>public static final boolean DEFAULT_TEST_ON_RETURN</pre>
<div class="block">The default "test on return" value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><code>getTestOnReturn()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_ON_RETURN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_TEST_WHILE_IDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_TEST_WHILE_IDLE</h4>
<pre>public static final boolean DEFAULT_TEST_WHILE_IDLE</pre>
<div class="block">The default "test while idle" value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestWhileIdle()"><code>getTestWhileIdle()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><code>getTimeBetweenEvictionRunsMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_WHILE_IDLE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS</h4>
<pre>public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS</pre>
<div class="block">The default "time between eviction runs" value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><code>getTimeBetweenEvictionRunsMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_WHEN_EXHAUSTED_ACTION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_WHEN_EXHAUSTED_ACTION</h4>
<pre>public static final byte DEFAULT_WHEN_EXHAUSTED_ACTION</pre>
<div class="block">The default "when exhausted action" for the pool.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WHEN_EXHAUSTED_BLOCK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WHEN_EXHAUSTED_BLOCK</h4>
<pre>public static final byte WHEN_EXHAUSTED_BLOCK</pre>
<div class="block">A "when exhausted action" type indicating that when the pool
is exhausted (i.e., the maximum number
of active objects has been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should block until a new object is available, or the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>maximum wait time</code></a> has been reached.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_BLOCK">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WHEN_EXHAUSTED_FAIL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WHEN_EXHAUSTED_FAIL</h4>
<pre>public static final byte WHEN_EXHAUSTED_FAIL</pre>
<div class="block">A "when exhausted action" type indicating that when the pool is
exhausted (i.e., the maximum number of active objects has
been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should fail, throwing a <a href="/usr/share/doc/default-jdk-doc/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util"><code>NoSuchElementException</code></a>.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_FAIL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WHEN_EXHAUSTED_GROW">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>WHEN_EXHAUSTED_GROW</h4>
<pre>public static final byte WHEN_EXHAUSTED_GROW</pre>
<div class="block">A "when exhausted action" type indicating that when the pool is
exhausted (i.e., the maximum number
of active objects has been reached), the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method should simply create a new object anyway.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_GROW">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="GenericObjectPool()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool()</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> with default properties.</div>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified factory.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, org.apache.commons.pool.impl.GenericObjectPool.Config)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl">GenericObjectPool.Config</a> config)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>config</code> - a non-<tt>null</tt> <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl"><code>GenericObjectPool.Config</code></a> describing my configuration</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed from me at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed from me at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>getWhenExhaustedAction()</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted an and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>getWhenExhaustedAction()</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted an and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><code>getTestOnBorrow()</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><code>getTestOnReturn()</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>getWhenExhaustedAction()</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><code>getMaxIdle()</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>getWhenExhaustedAction()</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><code>getMaxIdle()</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><code>getTestOnBorrow()</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><code>getTestOnReturn()</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, boolean, boolean, long, int, long, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a>)</dd><dd><code>timeBetweenEvictionRunsMillis</code> - the amount of time (in milliseconds) to sleep between examining idle objects
for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>)</dd><dd><code>numTestsPerEvictionRun</code> - the number of idle objects to examine per run within the idle object eviction thread
(if any) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>)</dd><dd><code>minEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the pool before it
is eligible for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>)</dd><dd><code>testWhileIdle</code> - whether or not to validate objects in the idle object eviction thread, if any
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a>)</dd><dd><code>minIdle</code> - the minimum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><code>setMinIdle(int)</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a> method
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a>)</dd><dd><code>timeBetweenEvictionRunsMillis</code> - the amount of time (in milliseconds) to sleep between examining idle objects
for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>)</dd><dd><code>numTestsPerEvictionRun</code> - the number of idle objects to examine per run within the idle object eviction thread
(if any) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>)</dd><dd><code>minEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the pool before
it is eligible for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>)</dd><dd><code>testWhileIdle</code> - whether or not to validate objects in the idle object eviction thread, if any
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>)</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a>)</dd><dd><code>minIdle</code> - the minimum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><code>setMinIdle(int)</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>
method (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a>)</dd><dd><code>timeBetweenEvictionRunsMillis</code> - the amount of time (in milliseconds) to sleep between examining idle objects
for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>)</dd><dd><code>numTestsPerEvictionRun</code> - the number of idle objects to examine per run within the idle object eviction thread
(if any) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>)</dd><dd><code>minEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the pool before
it is eligible for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>)</dd><dd><code>testWhileIdle</code> - whether or not to validate objects in the idle object eviction thread, if any
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>)</dd><dd><code>softMinEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the pool before it is
eligible for eviction with the extra condition that at least "minIdle" amount of object remain in the pool.
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)"><code>setSoftMinEvictableIdleTimeMillis(long)</code></a>)</dd><dt><span class="strong">Since:</span></dt>
<dd>Pool 1.3</dd></dl>
</li>
</ul>
<a name="GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory, int, byte, long, int, int, boolean, boolean, long, int, long, boolean, long, boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GenericObjectPool</h4>
<pre>public GenericObjectPool(<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool">PoolableObjectFactory</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis,
boolean lifo)</pre>
<div class="block">Create a new <tt>GenericObjectPool</tt> using the specified values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>factory</code> - the (possibly <tt>null</tt>)PoolableObjectFactory to use to create, validate and destroy objects</dd><dd><code>maxActive</code> - the maximum number of objects that can be borrowed at one time (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a>)</dd><dd><code>whenExhaustedAction</code> - the action to take when the pool is exhausted (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>)</dd><dd><code>maxWait</code> - the maximum amount of time to wait for an idle object when the pool is exhausted and
<i>whenExhaustedAction</i> is <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a> (otherwise ignored) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>)</dd><dd><code>maxIdle</code> - the maximum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a>)</dd><dd><code>minIdle</code> - the minimum number of idle objects in my pool (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><code>setMinIdle(int)</code></a>)</dd><dd><code>testOnBorrow</code> - whether or not to validate objects before they are returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a>)</dd><dd><code>testOnReturn</code> - whether or not to validate objects after they are returned to the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>
method (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a>)</dd><dd><code>timeBetweenEvictionRunsMillis</code> - the amount of time (in milliseconds) to sleep between examining idle
objects for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a>)</dd><dd><code>numTestsPerEvictionRun</code> - the number of idle objects to examine per run within the idle object eviction
thread (if any) (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>)</dd><dd><code>minEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the pool before
it is eligible for eviction (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>)</dd><dd><code>testWhileIdle</code> - whether or not to validate objects in the idle object eviction thread, if any
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>)</dd><dd><code>softMinEvictableIdleTimeMillis</code> - the minimum number of milliseconds an object can sit idle in the
pool before it is eligible for eviction with the extra condition that at least "minIdle" amount of object
remain in the pool. (see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)"><code>setSoftMinEvictableIdleTimeMillis(long)</code></a>)</dd><dd><code>lifo</code> - whether or not objects are returned in last-in-first-out order from the idle object pool
(see <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setLifo(boolean)"><code>setLifo(boolean)</code></a>)</dd><dt><span class="strong">Since:</span></dt>
<dd>Pool 1.4</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="addObject()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addObject</h4>
<pre>public void addObject()
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Create an object, and place it into the pool.
addObject() is useful for "pre-loading" a pool with idle objects.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#addObject()">addObject</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#addObject()">addObject</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - when <a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#makeObject()"><code>PoolableObjectFactory.makeObject()</code></a> fails.</dd>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - after <a href="../../../../../org/apache/commons/pool/ObjectPool.html#close()"><code>ObjectPool.close()</code></a> has been called on this pool.</dd>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - when this pool cannot add new idle objects.</dd></dl>
</li>
</ul>
<a name="borrowObject()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>borrowObject</h4>
<pre>public <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a> borrowObject()
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><p>Borrows an object from the pool.</p>
<p>If there is an idle instance available in the pool, then either the most-recently returned
(if <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getLifo()"><code>lifo</code></a> == true) or "oldest" (lifo == false) instance sitting idle in the pool
will be activated and returned. If activation fails, or <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><code>testOnBorrow</code></a> is set
to true and validation fails, the instance is destroyed and the next available instance is examined.
This continues until either a valid instance is returned or there are no more idle instances available.</p>
<p>If there are no idle instances available in the pool, behavior depends on the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxActive()"><code>maxActive</code></a>
and (if applicable) <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>whenExhaustedAction</code></a> and <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>maxWait</code></a>
properties. If the number of instances checked out from the pool is less than <code>maxActive,</code> a new
instance is created, activated and (if applicable) validated and returned to the caller.</p>
<p>If the pool is exhausted (no available idle instances and no capacity to create new ones),
this method will either block (<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>), throw a <code>NoSuchElementException</code>
(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>), or grow (<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a> - ignoring maxActive).
The length of time that this method will block when <code>whenExhaustedAction == WHEN_EXHAUSTED_BLOCK</code>
is determined by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>maxWait</code></a> property.</p>
<p>When the pool is exhausted, multiple calling threads may be simultaneously blocked waiting for instances
to become available. As of pool 1.5, a "fairness" algorithm has been implemented to ensure that threads receive
available instances in request arrival order.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#borrowObject()">borrowObject</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#borrowObject()">borrowObject</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>object instance</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/util/NoSuchElementException.html?is-external=true" title="class or interface in java.util">NoSuchElementException</a></code> - if an instance cannot be returned</dd>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if an instance cannot be obtained from the pool</dd></dl>
</li>
</ul>
<a name="clear()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>public void clear()</pre>
<div class="block">Clears any objects sitting idle in the pool by removing them from the
idle instance pool and then invoking the configured
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#destroyObject(T)"><code>PoolableObjectFactory.destroyObject(Object)</code></a> method on each idle
instance.
<p> Implementation notes:
<ul><li>This method does not destroy or effect in any way instances that are
checked out of the pool when it is invoked.</li>
<li>Invoking this method does not prevent objects being
returned to the idle instance pool, even during its execution. It locks
the pool only during instance removal. Additional instances may be returned
while removed items are being destroyed.</li>
<li>Exceptions encountered destroying idle instances are swallowed.</li></ul></p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#clear()">clear</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#clear()">clear</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
</dl>
</li>
</ul>
<a name="close()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public void close()
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><p>Closes the pool. Once the pool is closed, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
will fail with IllegalStateException, but <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(Object)</code></a> and
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#invalidateObject(T)"><code>invalidateObject(Object)</code></a> will continue to work, with returned objects
destroyed on return.</p>
<p>Destroys idle instances in the pool by invoking <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#clear()"><code>clear()</code></a>.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#close()">close</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#close()">close</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="evict()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>evict</h4>
<pre>public void evict()
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><p>Perform <code>numTests</code> idle object eviction tests, evicting
examined objects that meet the criteria for eviction. If
<code>testWhileIdle</code> is true, examined objects are validated
when visited (and removed if invalid); otherwise only objects that
have been idle for more than <code>minEvicableIdletimeMillis</code>
are removed.</p>
<p>Successive activations of this method examine objects in
in sequence, cycling through objects in oldest-to-youngest order.</p></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if the pool is closed or eviction fails.</dd></dl>
</li>
</ul>
<a name="getLifo()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLifo</h4>
<pre>public boolean getLifo()</pre>
<div class="block">Whether or not the idle object pool acts as a LIFO queue. True means
that borrowObject returns the most recently used ("last in") idle object
in the pool (if there are idle instances available). False means that
the pool behaves as a FIFO queue - objects are taken from the idle object
pool in the order that they are returned to the pool.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</true> if the pool is configured to act as a LIFO queue</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4</dd></dl>
</li>
</ul>
<a name="getMaxActive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxActive</h4>
<pre>public int getMaxActive()</pre>
<div class="block">Returns the maximum number of objects that can be allocated by the pool
(checked out to clients, or idle awaiting checkout) at a given time.
When non-positive, there is no limit to the number of objects that can
be managed by the pool at one time.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the cap on the total number of object instances managed by the pool.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxActive(int)"><code>setMaxActive(int)</code></a></dd></dl>
</li>
</ul>
<a name="getMaxIdle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxIdle</h4>
<pre>public int getMaxIdle()</pre>
<div class="block">Returns the cap on the number of "idle" instances in the pool.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the cap on the number of "idle" instances in the pool.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><code>setMaxIdle(int)</code></a></dd></dl>
</li>
</ul>
<a name="getMaxWait()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxWait</h4>
<pre>public long getMaxWait()</pre>
<div class="block">Returns the maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.
When less than or equal to 0, the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
may block indefinitely.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>maximum number of milliseconds to block when borrowing an object.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><code>setMaxWait(long)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a></dd></dl>
</li>
</ul>
<a name="getMinEvictableIdleTimeMillis()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinEvictableIdleTimeMillis</h4>
<pre>public long getMinEvictableIdleTimeMillis()</pre>
<div class="block">Returns the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>minimum amount of time an object may sit idle in the pool before it is eligible for eviction.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinEvictableIdleTimeMillis(long)"><code>setMinEvictableIdleTimeMillis(long)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="getMinIdle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinIdle</h4>
<pre>public int getMinIdle()</pre>
<div class="block">Returns the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.
(Note no objects are created when: numActive + numIdle >= maxActive)</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The minimum number of objects.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><code>setMinIdle(int)</code></a></dd></dl>
</li>
</ul>
<a name="getNumActive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumActive</h4>
<pre>public int getNumActive()</pre>
<div class="block">Return the number of instances currently borrowed from this pool.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#getNumActive()">getNumActive</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#getNumActive()">getNumActive</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the number of instances currently borrowed from this pool</dd></dl>
</li>
</ul>
<a name="getNumIdle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumIdle</h4>
<pre>public int getNumIdle()</pre>
<div class="block">Return the number of instances currently idle in this pool.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#getNumIdle()">getNumIdle</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#getNumIdle()">getNumIdle</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the number of instances currently idle in this pool</dd></dl>
</li>
</ul>
<a name="getNumTestsPerEvictionRun()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumTestsPerEvictionRun</h4>
<pre>public int getNumTestsPerEvictionRun()</pre>
<div class="block">Returns the max number of objects to examine during each run of the
idle object evictor thread (if any).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>max number of objects to examine during each evictor run.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setNumTestsPerEvictionRun(int)"><code>setNumTestsPerEvictionRun(int)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="getSoftMinEvictableIdleTimeMillis()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSoftMinEvictableIdleTimeMillis</h4>
<pre>public long getSoftMinEvictableIdleTimeMillis()</pre>
<div class="block">Returns the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" amount of object remain in the pool.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>minimum amount of time an object may sit idle in the pool before it is eligible for eviction.</dd><dt><span class="strong">Since:</span></dt>
<dd>Pool 1.3</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setSoftMinEvictableIdleTimeMillis(long)"><code>setSoftMinEvictableIdleTimeMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="getTestOnBorrow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTestOnBorrow</h4>
<pre>public boolean getTestOnBorrow()</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method. If the object fails to validate,
it will be dropped from the pool, and we will attempt
to borrow another.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if objects are validated before being borrowed.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><code>setTestOnBorrow(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="getTestOnReturn()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTestOnReturn</h4>
<pre>public boolean getTestOnReturn()</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned to the pool within the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> when objects will be validated after returned to <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><code>setTestOnReturn(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="getTestWhileIdle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTestWhileIdle</h4>
<pre>public boolean getTestWhileIdle()</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
by the idle object evictor (if any). If an object
fails to validate, it will be dropped from the pool.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> when objects will be validated by the evictor.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><code>setTestWhileIdle(boolean)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="getTimeBetweenEvictionRunsMillis()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimeBetweenEvictionRunsMillis</h4>
<pre>public long getTimeBetweenEvictionRunsMillis()</pre>
<div class="block">Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.
When non-positive, no idle object evictor thread will be
run.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>number of milliseconds to sleep between evictor runs.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="getWhenExhaustedAction()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWhenExhaustedAction</h4>
<pre>public byte getWhenExhaustedAction()</pre>
<div class="block">Returns the action to take when the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>one of <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a> or <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a></dd></dl>
</li>
</ul>
<a name="invalidateObject(java.lang.Object)">
<!-- -->
</a><a name="invalidateObject(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invalidateObject</h4>
<pre>public void invalidateObject(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a> obj)
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><p>Invalidates an object from the pool.</p>
<p>By contract, <code>obj</code> <strong>must</strong> have been obtained
using <a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#borrowObject()"><code>borrowObject</code></a>.<p>
<p>This method should be used when an object that has been borrowed
is determined (due to an exception or other problem) to be invalid.</p>
<p>Activation of this method decrements the active count and attempts to destroy the instance.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#invalidateObject(T)">invalidateObject</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#invalidateObject(T)">invalidateObject</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - a <a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#borrowObject()"><code>borrowed</code></a> instance to be disposed.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if the configured <a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html" title="interface in org.apache.commons.pool"><code>PoolableObjectFactory</code></a> throws an exception destroying obj</dd></dl>
</li>
</ul>
<a name="returnObject(java.lang.Object)">
<!-- -->
</a><a name="returnObject(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>returnObject</h4>
<pre>public void returnObject(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a> obj)
throws <a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><p>Returns an object instance to the pool.</p>
<p>If <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><code>maxIdle</code></a> is set to a positive value and the number of idle instances
has reached this value, the returning instance is destroyed.</p>
<p>If <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><code>testOnReturn</code></a> == true, the returning instance is validated before being returned
to the idle instance pool. In this case, if validation fails, the instance is destroyed.</p>
<p><strong>Note: </strong> There is no guard to prevent an object
being returned to the pool multiple times. Clients are expected to
discard references to returned objects and ensure that an object is not
returned to the pool multiple times in sequence (i.e., without being
borrowed again between returns). Violating this contract will result in
the same object appearing multiple times in the pool and pool counters
(numActive, numIdle) returning incorrect values.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/ObjectPool.html#returnObject(T)">returnObject</a></code> in interface <code><a href="../../../../../org/apache/commons/pool/ObjectPool.html" title="interface in org.apache.commons.pool">ObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html#returnObject(T)">returnObject</a></code> in class <code><a href="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</a><<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html" title="type parameter in GenericObjectPool">T</a>></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - instance to return to the pool</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="/usr/share/doc/default-jdk-doc/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="setConfig(org.apache.commons.pool.impl.GenericObjectPool.Config)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setConfig</h4>
<pre>public void setConfig(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl">GenericObjectPool.Config</a> conf)</pre>
<div class="block">Sets my configuration.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>conf</code> - configuration to use.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl"><code>GenericObjectPool.Config</code></a></dd></dl>
</li>
</ul>
<a name="setLifo(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLifo</h4>
<pre>public void setLifo(boolean lifo)</pre>
<div class="block">Sets the LIFO property of the pool. True means that borrowObject returns
the most recently used ("last in") idle object in the pool (if there are
idle instances available). False means that the pool behaves as a FIFO
queue - objects are taken from the idle object pool in the order that
they are returned to the pool.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lifo</code> - the new value for the LIFO property</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4</dd></dl>
</li>
</ul>
<a name="setMaxActive(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxActive</h4>
<pre>public void setMaxActive(int maxActive)</pre>
<div class="block">Sets the cap on the number of objects that can be allocated by the pool
(checked out to clients, or idle awaiting checkout) at a given time. Use
a negative value for no limit.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxActive</code> - The cap on the total number of object instances managed by the pool.
Negative values mean that there is no limit to the number of objects allocated
by the pool.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxActive()"><code>getMaxActive()</code></a></dd></dl>
</li>
</ul>
<a name="setMaxIdle(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxIdle</h4>
<pre>public void setMaxIdle(int maxIdle)</pre>
<div class="block">Sets the cap on the number of "idle" instances in the pool.
If maxIdle is set too low on heavily loaded systems it is possible you
will see objects being destroyed and almost immediately new objects
being created. This is a result of the active threads momentarily
returning objects faster than they are requesting them them, causing the
number of idle objects to rise above maxIdle. The best value for maxIdle
for heavily loaded system will vary but the default is a good starting
point.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxIdle</code> - The cap on the number of "idle" instances in the pool.
Use a negative value to indicate an unlimited number of idle instances.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><code>getMaxIdle()</code></a></dd></dl>
</li>
</ul>
<a name="setMaxWait(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxWait</h4>
<pre>public void setMaxWait(long maxWait)</pre>
<div class="block">Sets the maximum amount of time (in milliseconds) the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method should block before throwing
an exception when the pool is exhausted and the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>"when exhausted" action</code></a> is
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>.
When less than or equal to 0, the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
may block indefinitely.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxWait</code> - maximum number of milliseconds to block when borrowing an object.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><code>getMaxWait()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><code>setWhenExhaustedAction(byte)</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a></dd></dl>
</li>
</ul>
<a name="setMinEvictableIdleTimeMillis(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMinEvictableIdleTimeMillis</h4>
<pre>public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)</pre>
<div class="block">Sets the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any).
When non-positive, no objects will be evicted from the pool
due to idle time alone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>minEvictableIdleTimeMillis</code> - minimum amount of time an object may sit idle in the pool before
it is eligible for eviction.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinEvictableIdleTimeMillis()"><code>getMinEvictableIdleTimeMillis()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="setMinIdle(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMinIdle</h4>
<pre>public void setMinIdle(int minIdle)</pre>
<div class="block">Sets the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.
Note that no objects are created when
<code>numActive + numIdle >= maxActive.</code>
This setting has no effect if the idle object evictor is disabled
(i.e. if <code>timeBetweenEvictionRunsMillis <= 0</code>).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>minIdle</code> - The minimum number of objects.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinIdle()"><code>getMinIdle()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><code>getTimeBetweenEvictionRunsMillis()</code></a></dd></dl>
</li>
</ul>
<a name="setNumTestsPerEvictionRun(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNumTestsPerEvictionRun</h4>
<pre>public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)</pre>
<div class="block">Sets the max number of objects to examine during each run of the
idle object evictor thread (if any).
<p>
When a negative value is supplied, <tt>ceil(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumIdle()"><code>getNumIdle()</code></a>)/abs(<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumTestsPerEvictionRun()"><code>getNumTestsPerEvictionRun()</code></a>)</tt>
tests will be run. That is, when the value is <i>-n</i>, roughly one <i>n</i>th of the
idle objects will be tested per run. When the value is positive, the number of tests
actually performed in each run will be the minimum of this value and the number of instances
idle in the pool.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numTestsPerEvictionRun</code> - max number of objects to examine during each evictor run.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getNumTestsPerEvictionRun()"><code>getNumTestsPerEvictionRun()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="setSoftMinEvictableIdleTimeMillis(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSoftMinEvictableIdleTimeMillis</h4>
<pre>public void setSoftMinEvictableIdleTimeMillis(long softMinEvictableIdleTimeMillis)</pre>
<div class="block">Sets the minimum amount of time an object may sit idle in the pool
before it is eligible for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" object instances remain in the pool.
When non-positive, no objects will be evicted from the pool
due to idle time alone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>softMinEvictableIdleTimeMillis</code> - minimum amount of time an object may sit idle in the pool before
it is eligible for eviction.</dd><dt><span class="strong">Since:</span></dt>
<dd>Pool 1.3</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getSoftMinEvictableIdleTimeMillis()"><code>getSoftMinEvictableIdleTimeMillis()</code></a></dd></dl>
</li>
</ul>
<a name="setTestOnBorrow(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTestOnBorrow</h4>
<pre>public void setTestOnBorrow(boolean testOnBorrow)</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned by the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a>
method. If the object fails to validate,
it will be dropped from the pool, and we will attempt
to borrow another.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>testOnBorrow</code> - <code>true</code> if objects should be validated before being borrowed.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><code>getTestOnBorrow()</code></a></dd></dl>
</li>
</ul>
<a name="setTestOnReturn(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTestOnReturn</h4>
<pre>public void setTestOnReturn(boolean testOnReturn)</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
before being returned to the pool within the
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>testOnReturn</code> - <code>true</code> so objects will be validated after returned to <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#returnObject(T)"><code>returnObject(T)</code></a>.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><code>getTestOnReturn()</code></a></dd></dl>
</li>
</ul>
<a name="setTestWhileIdle(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTestWhileIdle</h4>
<pre>public void setTestWhileIdle(boolean testWhileIdle)</pre>
<div class="block">When <tt>true</tt>, objects will be
<a href="../../../../../org/apache/commons/pool/PoolableObjectFactory.html#validateObject(T)"><code>validated</code></a>
by the idle object evictor (if any). If an object
fails to validate, it will be dropped from the pool.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>testWhileIdle</code> - <code>true</code> so objects will be validated by the evictor.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestWhileIdle()"><code>getTestWhileIdle()</code></a>,
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><code>setTimeBetweenEvictionRunsMillis(long)</code></a></dd></dl>
</li>
</ul>
<a name="setTimeBetweenEvictionRunsMillis(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimeBetweenEvictionRunsMillis</h4>
<pre>public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)</pre>
<div class="block">Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.
When non-positive, no idle object evictor thread will be
run.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeBetweenEvictionRunsMillis</code> - number of milliseconds to sleep between evictor runs.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><code>getTimeBetweenEvictionRunsMillis()</code></a></dd></dl>
</li>
</ul>
<a name="setWhenExhaustedAction(byte)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setWhenExhaustedAction</h4>
<pre>public void setWhenExhaustedAction(byte whenExhaustedAction)</pre>
<div class="block">Sets the action to take when the <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><code>borrowObject()</code></a> method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>whenExhaustedAction</code> - the action code, which must be one of
<a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><code>WHEN_EXHAUSTED_BLOCK</code></a>, <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><code>WHEN_EXHAUSTED_FAIL</code></a>,
or <a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><code>WHEN_EXHAUSTED_GROW</code></a></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><code>getWhenExhaustedAction()</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/pool/impl/GenericKeyedObjectPoolFactory.html" title="class in org.apache.commons.pool.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/pool/impl/GenericObjectPool.Config.html" title="class in org.apache.commons.pool.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/pool/impl/GenericObjectPool.html" target="_top">Frames</a></li>
<li><a href="GenericObjectPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><small>Copyright © 2001-2012 Apache Software Foundation. Documenation generated May 24 2013</small>.</small></p>
</body>
</html>
|