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

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

Introduction

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

The text is from its open source code.

Implementation

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

Method

TborrowObject()
Obtains an instance from this pool.
voidclear()
Clears any objects sitting idle in the pool, releasing any associated resources (optional operation).
voidclose()
Close this pool, and free any resources associated with it.
intgetNumActive()
Return the number of instances currently borrowed from this pool.
intgetNumIdle()
Return the number of instances currently idle in this pool.
voidinvalidateObject(T obj)
Invalidates an object from the pool.
voidreturnObject(T obj)
Return an instance to the pool.