T
- the type of objects held in this poolpublic class StackObjectPoolFactory<T> extends Object implements ObjectPoolFactory<T>
StackObjectPool
instances.StackObjectPool
,
StackKeyedObjectPoolFactory
Modifier and Type | Field and Description |
---|---|
protected PoolableObjectFactory<T> |
_factory
Deprecated.
to be made private in pool 2.0
|
protected int |
_initCapacity
Deprecated.
to be made private in pool 2.0
|
protected int |
_maxSleeping
Deprecated.
to be made private in pool 2.0
|
Constructor and Description |
---|
StackObjectPoolFactory()
Deprecated.
to be removed in pool 2.0 - use
StackObjectPoolFactory(PoolableObjectFactory) |
StackObjectPoolFactory(int maxIdle)
Deprecated.
to be removed in pool 2.0 - use
StackObjectPoolFactory(PoolableObjectFactory, int) |
StackObjectPoolFactory(int maxIdle,
int initIdleCapacity)
Deprecated.
to be removed in pool 2.0 - use
StackObjectPoolFactory(PoolableObjectFactory, int, int) |
StackObjectPoolFactory(PoolableObjectFactory<T> factory)
Create a new StackObjectPoolFactory.
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle)
Create a new StackObjectPoolFactory.
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle,
int initIdleCapacity)
Create a new StackObjectPoolFactory.
|
Modifier and Type | Method and Description |
---|---|
ObjectPool<T> |
createPool()
Create a StackObjectPool.
|
PoolableObjectFactory<T> |
getFactory()
Returns the factory used by created pools.
|
int |
getInitCapacity()
Returns the initial capacity of created pools.
|
int |
getMaxSleeping()
Returns the maxIdle setting for created pools.
|
@Deprecated protected PoolableObjectFactory<T> _factory
@Deprecated protected int _maxSleeping
@Deprecated protected int _initCapacity
@Deprecated public StackObjectPoolFactory()
StackObjectPoolFactory(PoolableObjectFactory)
StackObjectPool.StackObjectPool()
@Deprecated public StackObjectPoolFactory(int maxIdle)
StackObjectPoolFactory(PoolableObjectFactory, int)
maxIdle
- cap on the number of "sleeping" instances in the pool.StackObjectPool.StackObjectPool(int)
@Deprecated public StackObjectPoolFactory(int maxIdle, int initIdleCapacity)
StackObjectPoolFactory(PoolableObjectFactory, int, int)
maxIdle
- cap on the number of "sleeping" instances in the pool.initIdleCapacity
- - initial size of the pool (this specifies the size of the container,
it does not cause the pool to be pre-populated.)StackObjectPool.StackObjectPool(int, int)
public StackObjectPoolFactory(PoolableObjectFactory<T> factory)
factory
- the PoolableObjectFactory used by created pools.StackObjectPool.StackObjectPool(PoolableObjectFactory)
public StackObjectPoolFactory(PoolableObjectFactory<T> factory, int maxIdle)
factory
- the PoolableObjectFactory used by created pools.maxIdle
- cap on the number of "sleeping" instances in the pool.public StackObjectPoolFactory(PoolableObjectFactory<T> factory, int maxIdle, int initIdleCapacity)
factory
- the PoolableObjectFactory used by created pools.maxIdle
- cap on the number of "sleeping" instances in the pool.initIdleCapacity
- - initial size of the pool (this specifies the size of the container,
it does not cause the pool to be pre-populated.)public ObjectPool<T> createPool()
createPool
in interface ObjectPoolFactory<T>
public PoolableObjectFactory<T> getFactory()
public int getMaxSleeping()
public int getInitCapacity()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.