Example usage for Java org.apache.commons.pool2 ObjectPool fields, constructors, methods, implement or subclass
The text is from its open source code.
T | borrowObject() Obtains an instance from this pool. |
void | clear() Clears any objects sitting idle in the pool, releasing any associated resources (optional operation). |
void | close() Close this pool, and free any resources associated with it. |
int | getNumActive() Return the number of instances currently borrowed from this pool. |
int | getNumIdle() Return the number of instances currently idle in this pool. |
void | invalidateObject(T obj) Invalidates an object from the pool. |
void | returnObject(T obj) Return an instance to the pool. |