- <init>
Create a new GenericObjectPool using the specified values.
- returnObject
Returns an object instance to the pool.
If #getMaxIdle() is set to a positive value and the number
- borrowObject
Borrows an object from the pool.
If there is an idle instance available in the pool, then either th
- setMaxActive
Sets the cap on the number of objects that can be allocated by the pool (checked
out to clients, or
- close
Closes the pool. Once the pool is closed, #borrowObject()will fail with
IllegalStateException, but #
- setMaxIdle
Sets the cap on the number of "idle" instances in the pool. If maxIdle is set
too low on heavily loa
- setMinIdle
Sets the minimum number of objects allowed in the pool before the evictor thread
(if active) spawns
- setTimeBetweenEvictionRunsMillis
Sets the number of milliseconds to sleep between runs of the idle object evictor
thread. When non-po
- setMinEvictableIdleTimeMillis
Sets the minimum amount of time an object may sit idle in the pool before it is
eligible for evictio
- setMaxWait
Sets the maximum amount of time (in milliseconds) the #borrowObject method
should block before throw
- setTestOnBorrow
When true, objects will be PoolableObjectFactory#validateObjectbefore being
returned by the #borrowO
- setWhenExhaustedAction
Sets the action to take when the #borrowObject method is invoked when the pool
is exhausted (the max