You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Generic Object pooling API with several implementations.</p>
25
+
<p>
26
+
The
27
+
<code>org.apache.commons.pool2</code>
28
+
package defines a simple interface for a pool of object instances, and a handful of base classes that may be useful when creating pool implementations. The
29
+
API supports pooling of unique objects which can be requested via a key as well as pools where all objects are equivalent.
30
+
</p>
31
+
<p>
32
+
The
33
+
<code>org.apache.commons.pool2.impl</code>
34
+
package contains several pool implementations. {@link org.apache.commons.pool2.impl.GenericObjectPool GenericObjectPool} has many configuration options and
35
+
can support a limited set of objects such as would be useful in a database connection pool. {@link org.apache.commons.pool2.impl.SoftReferenceObjectPool
36
+
SoftReferenceObjectPool} has no limit on the number of objects in the pool, but the garbage collector can remove idle objects from the pool as needed. There
37
+
is also a keyed version of {@link org.apache.commons.pool2.impl.GenericObjectPool GenericObjectPool}, {@link
0 commit comments