Package net.csdn.modules.thrift.pool

Interface Summary
ObjectPool<K,V> Keyed object pooling interface ObjectPool interface mainly defines borrowObject, returnObject and removeObject.
PoolableObjectFactory<K,V> An interface defining life-cycle methods for instances to be served by a ObjectPool

By contract, when an ObjectPool delegates to a PoolableObjectFactory, createObject is called whenever a new instance is needed.

 

Class Summary
BaseObjectPool<K,V> The basic implementation of ObjectPool for high performance and scalability This class should be thread-safe.
BaseObjectPool.Builder<K,V>  
 

Exception Summary
NoValidObjectException This exception will be thrown when the pool cannot create a new instance by PoolableObjectFactory.createObject(K) or there are no valid instances which used to be tested by PoolableObjectFactory.validateObject(K, V)
PoolExhaustedException This exception will be thrown when the pool is exhausted and cannot or will not borrow another instance
 



Copyright © 2014. All Rights Reserved.