程序包 | 说明 |
---|---|
com.sh.pool | |
com.sh.pool.impl | |
com.sh.pool.object.ddc |
限定符和类型 | 类和说明 |
---|---|
class |
BasePoolableObjectFactory<T>
Description: BasePoolableObjectFactory
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> PoolableObjectFactory<V> |
PoolUtils.adapt(KeyedPoolableObjectFactory<K,V> keyedFactory,
K key)
Adapt a
KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is
needed using the specified key when delegating. |
static <V> PoolableObjectFactory<V> |
PoolUtils.adapt(KeyedPoolableObjectFactory<java.lang.Object,V> keyedFactory)
Adapt a
KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is
needed. |
static <T> PoolableObjectFactory<T> |
PoolUtils.synchronizedPoolableFactory(PoolableObjectFactory<T> factory)
Returns a synchronized (thread-safe) PoolableObjectFactory backed by the specified PoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedPoolableObjectFactory<K,V> |
PoolUtils.adapt(PoolableObjectFactory<V> factory)
Adapt a
PoolableObjectFactory instance to work where a KeyedPoolableObjectFactory is
needed. |
void |
ObjectPool.setFactory(PoolableObjectFactory<T> factory)
已过时。
to be removed in pool 2.0
|
void |
BaseObjectPool.setFactory(PoolableObjectFactory<T> factory)
已过时。
|
static <T> PoolableObjectFactory<T> |
PoolUtils.synchronizedPoolableFactory(PoolableObjectFactory<T> factory)
Returns a synchronized (thread-safe) PoolableObjectFactory backed by the specified PoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
PoolableObjectFactory<T> |
StackObjectPoolFactory.getFactory()
Returns the factory used by created pools.
|
PoolableObjectFactory<T> |
StackObjectPool.getFactory()
Returns the
PoolableObjectFactory used by this pool to create and manage object instances. |
PoolableObjectFactory<T> |
SoftReferenceObjectPool.getFactory()
Returns the
PoolableObjectFactory used by this pool to create and manage object instances. |
PoolableObjectFactory<T> |
GenericObjectPoolFactory.getFactory() |
限定符和类型 | 方法和说明 |
---|---|
void |
StackObjectPool.setFactory(PoolableObjectFactory<T> factory)
已过时。
to be removed in pool 2.0
|
void |
SoftReferenceObjectPool.setFactory(PoolableObjectFactory<T> factory)
已过时。
to be removed in pool 2.0
|
void |
GenericObjectPool.setFactory(PoolableObjectFactory<T> factory)
已过时。
to be removed in version 2.0
|
构造器和说明 |
---|
GenericObjectPool(PoolableObjectFactory<T> factory)
Create a new GenericObjectPool using the specified factory.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
GenericObjectPool.Config config)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPool(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis,
boolean lifo)
Create a new GenericObjectPool using the specified values.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
GenericObjectPool.Config config)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis)
Create a new GenericObjectPoolFactory.
|
GenericObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
long softMinEvictableIdleTimeMillis,
boolean lifo)
Create a new GenericObjectPoolFactory.
|
SoftReferenceObjectPool(PoolableObjectFactory<T> factory)
Create a
SoftReferenceObjectPool with the specified factory. |
SoftReferenceObjectPool(PoolableObjectFactory<T> factory,
int initSize)
已过时。
because this is a SoftReference pool, prefilled idle obejects may be garbage collected before they are used.
To be removed in Pool 2.0.
|
StackObjectPool(PoolableObjectFactory<T> factory)
Create a new StackObjectPool using the specified factory to create new instances.
|
StackObjectPool(PoolableObjectFactory<T> factory,
int maxIdle)
Create a new SimpleObjectPool using the specified factory to create new instances,
capping the number of "sleeping" instances to maxIdle.
|
StackObjectPool(PoolableObjectFactory<T> factory,
int maxIdle,
int initIdleCapacity)
Create a new StackObjectPool using the specified
factory to create new instances,
capping the number of "sleeping" instances to maxIdle , and initially allocating a container
capable of containing at least initIdleCapacity instances. |
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
DDCFactory
Description: 安全数据库连接工厂
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|