|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
ObjectPool for high performance and scalability
This class should be thread-safe.createObject or will be a previously idle object and
then validated with validateObject.
createObject or will be a previously idle object and
then validated with validateObject.
PoolableObjectFactory.validateObject(K, V) before returning a borrowed object to the user
Default is false.
ObjectPool instance with this builder's properties
factory until pool's minimum size, and then place them in the idle object pool
createAllMinObjects is useful for "pre-loading" a pool with idle objects.
factory until pool's minimum size, and then place them in the idle object pool
createAllMinObjects is useful for "pre-loading" a pool with idle objects.
createAllMinObjects or borrowObject,
returnObject or removeObject or removeAllObjects after invoking
this method on a pool will cause them to throw an IllegalStateException.
createAllMinObjects or borrowObject,
returnObject or removeObject or removeAllObjects after invoking
this method on a pool will cause them to throw an IllegalStateException.
disposable is true.
BaseObjectPool.EvictionTask with this interval.
ChunkEncoder to compress individual chunks and
combines resulting chunks into contiguous output byte array.Integer.MAX_VALUE.
PoolableObjectFactory.createObject(K)
or there are no valid instances which used to be tested by PoolableObjectFactory.validateObject(K, V)borrowObject, returnObject and removeObject.ObjectPool
By contract, when an ObjectPool delegates to a PoolableObjectFactory,
createObject is called whenever a new instance is needed.key
key
value should have been obtained
using borrowObject using a key that is equivalent to the one used to
borrow the instance in the first place.
value should have been obtained
using borrowObject using a key that is equivalent to the one used to
borrow the instance in the first place.
value should have been obtained
using borrowObject using a key that is equivalent to the one used to
borrow the instance in the first place.
value should have been obtained
using borrowObject using a key that is equivalent to the one used to
borrow the instance in the first place.
PoolableObjectFactory.validateObject(K, V) before returning a borrowed object to the pool
Default is false.
ThreadLocal contains a SoftRerefence
to a BufferRecycler used to provide a low-cost
buffer recycling for buffers we need for encoding, decoding.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||