| Home >> All >> org >> apache >> commons >> [ pool Javadoc ] |
| | org.apache.commons.pool.impl.* (16) | | org.apache.commons.pool.performance.* (2) |
org.apache.commons.pool: Javadoc index of package org.apache.commons.pool.
Package Samples:
org.apache.commons.pool.impl: Object pooling API.
org.apache.commons.pool.performance
Classes:
GenericKeyedObjectPool: A configurable org.apache.commons.pool.KeyedObjectPool implementation. When coupled with the appropriate org.apache.commons.pool.KeyedPoolableObjectFactory , GenericKeyedObjectPool provides robust pooling functionality for arbitrary objects. A GenericKeyedObjectPool provides a number of configurable parameters: maxActive 55 controls the maximum number of objects (per key) that can be borrowed from the pool at one time. When non-positive, there is no limit to the number of objects that may be active at one time. When maxActive 55 is exceeded, the pool is said to be exhausted. maxIdle 55 controls ...
GenericObjectPool: A configurable org.apache.commons.pool.ObjectPool implementation. When coupled with the appropriate org.apache.commons.pool.PoolableObjectFactory , GenericObjectPool provides robust pooling functionality for arbitrary objects. A GenericObjectPool provides a number of configurable parameters: maxActive 55 controls the maximum number of objects that can be borrowed from the pool at one time. When non-positive, there is no limit to the number of objects that may be active at one time. When maxActive 55 is exceeded, the pool is said to be exhausted. maxIdle 55 controls the maximum number of objects ...
KeyedPoolableObjectFactory: An interface defining life-cycle methods for instances to be served by a KeyedObjectPool . By contract, when an KeyedObjectPool delegates to a KeyedPoolableObjectFactory , makeObject 55 is called whenever a new instance is needed. activateObject 55 is invoked on every instance before it is returned from the pool. passivateObject 55 is invoked on every instance when it is returned to the pool. destroyObject 55 is invoked on every instance when it is being "dropped" from the pool (whether due to the response from validateObject 55 , or for reasons specific to the pool implementation.) validateObject ...
PoolableObjectFactory: An interface defining life-cycle methods for instances to be used in an ObjectPool . By contract, when an ObjectPool delegates to a PoolableObjectFactory , makeObject 55 is called whenever a new instance is needed. activateObject 55 is invoked on every instance before it is returned from the pool. passivateObject 55 is invoked on every instance when it is returned to the pool. destroyObject 55 is invoked on every instance when it is being "dropped" from the pool (whether due to the response from validateObject 55 , or for reasons specific to the pool implementation.) validateObject 55 is invoked ...
KeyedObjectPool: A "keyed" pooling interface. A keyed pool pools instances of multiple types. Each type may be accessed using an arbitrary key. Example of use: Object obj = null ; Object key = "Key" ; try { obj = pool.borrowObject(key); //...use the object... } catch (Exception e) { //...handle any exceptions... } finally { // make sure the object is returned to the pool if ( null != obj) { pool.returnObject(key,obj); } } KeyedObjectPool implementations may choose to store at most one instance per key value, or may choose to maintain a pool of instances for each key (essentially creating a Map of pools ).
ObjectPool: A pooling interface. ObjectPool defines a trivially simple pooling interface. The only required methods are borrowObject 55 and returnObject 55 . Example of use: Object obj = null ; try { obj = pool.borrowObject(); //...use the object... } catch (Exception e) { //...handle any exceptions... } finally { // make sure the object is returned to the pool if ( null != obj) { pool.returnObject(obj); } } See BaseObjectPool for a simple base implementation.
StackKeyedObjectPool: A simple, Stack -based org.apache.commons.pool.KeyedObjectPool implementation. Given a org.apache.commons.pool.KeyedPoolableObjectFactory , this class will maintain a simple pool of instances. A finite number of "sleeping" or inactive instances is enforced, but when the pool is empty, new instances are created to support the new load. Hence this class places no limit on the number of "active" instances created by the pool, but is quite useful for re-using Object s without introducing artificial limits.
StackObjectPool: A simple, Stack -based org.apache.commons.pool.ObjectPool implementation. Given a org.apache.commons.pool.PoolableObjectFactory , this class will maintain a simple pool of instances. A finite number of "sleeping" or idle instances is enforced, but when the pool is empty, new instances are created to support the new load. Hence this class places no limit on the number of "active" instances created by the pool, but is quite useful for re-using Object s without introducing artificial limits.
BaseKeyedObjectPool: A simple base impementation of ObjectPool . All optional operations are implemented as throwing java.lang.UnsupportedOperationException .
BaseObjectPool: A simple base impementation of ObjectPool . All optional operations are implemented as throwing java.lang.UnsupportedOperationException .
BaseKeyedPoolableObjectFactory: A base implemenation of KeyedPoolableObjectFactory . All operations defined here are essentially no-op's.
BasePoolableObjectFactory: A base implemenation of PoolableObjectFactory . All operations defined here are essentially no-op's.
TestKeyedObjectPool: Abstract junit.framework.TestCase for ObjectPool implementations.
TestObjectPool: Abstract junit.framework.TestCase for ObjectPool implementations.
SoftReferenceObjectPool: A SoftReference based org.apache.commons.pool.ObjectPool .
GenericKeyedObjectPoolFactory: A factory for creating GenericKeyedObjectPool instances.
StackKeyedObjectPoolFactory: A factory for creating StackKeyedObjectPool instances.
GenericObjectPoolFactory: A factory for creating GenericObjectPool instances.
StackObjectPoolFactory: A factory for creating StackObjectPool instances.
KeyedObjectPoolFactory: A factory for creating KeyedObjectPool s.
ObjectPoolFactory: A factory interface for creating ObjectPool s.
TestAll: JUnit test suite for the org.apache.commons.pool.impl package.
SleepingObjectFactory: Sleepy ObjectFactory (everything takes a while longer)
| Home | Contact Us | Privacy Policy | Terms of Service |