Java org.apache.commons.pool2 KeyedObjectPool fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.pool2 KeyedObjectPool fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.pool2 KeyedObjectPool.

The text is from its open source code.

Implementation

org.apache.commons.pool2.KeyedObjectPool has the following implementations.
Click this link to see all its implementation.

Method

VborrowObject(K key)
Obtains an instance from this pool for the specified key.
voidclose()
Close this pool, and free any resources associated with it.
intgetNumActive(K key)
Returns the number of instances currently borrowed from but not yet returned to the pool corresponding to the given key.
intgetNumIdle(K key)
Returns the number of instances corresponding to the given key currently idle in this pool.
voidinvalidateObject(K key, V obj)
Invalidates an object from the pool.
voidreturnObject(K key, V obj)
Return an instance to the pool.