Java org.apache.commons.dbcp AbandonedObjectPool fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.dbcp AbandonedObjectPool fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Constructor

AbandonedObjectPool(PoolableObjectFactory factory, AbandonedConfig config)
Create an ObjectPool which tracks db connections.

Method

voidaddObject()
Create an object, and place it into the pool.
voidsetConfig(GenericObjectPool.Config conf)
Sets my configuration.
voidsetFactory(PoolableObjectFactory factory)
Sets the PoolableObjectFactory factory this pool uses to create new instances.
voidsetMaxActive(int maxActive)
Sets the cap on the number of objects that can be allocated by the pool (checked out to clients, or idle awaiting checkout) at a given time.
voidsetMaxIdle(int maxIdle)
Sets the cap on the number of "idle" instances in the pool.
voidsetMaxWait(long maxWait)
Sets the maximum amount of time (in milliseconds) the #borrowObject method should block before throwing an exception when the pool is exhausted and the #setWhenExhaustedAction "when exhausted" action is #WHEN_EXHAUSTED_BLOCK .
voidsetMinIdle(int minIdle)
Sets the minimum number of objects allowed in the pool before the evictor thread (if active) spawns new objects.
voidsetTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
Sets the number of milliseconds to sleep between runs of the idle object evictor thread.