Example usage for Java org.apache.commons.pool2 KeyedObjectPool fields, constructors, methods, implement or subclass
The text is from its open source code.
V | borrowObject(K key) Obtains an instance from this pool for the specified key . |
void | close() Close this pool, and free any resources associated with it. |
int | getNumActive(K key) Returns the number of instances currently borrowed from but not yet returned to the pool corresponding to the given key . |
int | getNumIdle(K key) Returns the number of instances corresponding to the given key currently idle in this pool. |
void | invalidateObject(K key, V obj) Invalidates an object from the pool. |
void | returnObject(K key, V obj) Return an instance to the pool. |