程序包 | 说明 |
---|---|
com.sh.common.net.ftp | |
org.apache.commons.pool2 | |
org.apache.commons.pool2.impl |
Object pooling API implementations.
|
redis.clients.jedis |
限定符和类型 | 方法和说明 |
---|---|
PooledObject<org.apache.commons.net.ftp.FTPClient> |
FtpClientFactory.wrap(org.apache.commons.net.ftp.FTPClient ftpClient)
用PooledObject封装对象放入池中
|
限定符和类型 | 方法和说明 |
---|---|
void |
FtpClientFactory.destroyObject(PooledObject<org.apache.commons.net.ftp.FTPClient> ftpPooled)
销毁FtpClient对象
|
boolean |
FtpClientFactory.validateObject(PooledObject<org.apache.commons.net.ftp.FTPClient> ftpPooled)
验证FtpClient对象
|
限定符和类型 | 方法和说明 |
---|---|
PooledObject<T> |
PooledObjectFactory.makeObject()
Creates an instance that can be served by the pool and wrap it in a
PooledObject to be managed by the pool. |
PooledObject<T> |
BasePooledObjectFactory.makeObject() |
PooledObject<V> |
KeyedPooledObjectFactory.makeObject(K key)
Create an instance that can be served by the pool and
wrap it in a
PooledObject to be managed by the pool. |
PooledObject<V> |
BaseKeyedPooledObjectFactory.makeObject(K key) |
abstract PooledObject<T> |
BasePooledObjectFactory.wrap(T obj)
Wrap the provided instance with an implementation of
PooledObject . |
abstract PooledObject<V> |
BaseKeyedPooledObjectFactory.wrap(V value)
Wrap the provided instance with an implementation of
PooledObject . |
限定符和类型 | 方法和说明 |
---|---|
void |
KeyedPooledObjectFactory.activateObject(K key,
PooledObject<V> p)
Reinitialize an instance to be returned by the pool.
|
void |
BaseKeyedPooledObjectFactory.activateObject(K key,
PooledObject<V> p)
Reinitialize an instance to be returned by the pool.
|
void |
PooledObjectFactory.activateObject(PooledObject<T> p)
Reinitializes an instance to be returned by the pool.
|
void |
BasePooledObjectFactory.activateObject(PooledObject<T> p)
No-op.
|
int |
PooledObject.compareTo(PooledObject<T> other)
Orders instances based on idle time - i.e. the length of time since the
instance was returned to the pool.
|
void |
KeyedPooledObjectFactory.destroyObject(K key,
PooledObject<V> p)
Destroy an instance no longer needed by the pool.
|
void |
BaseKeyedPooledObjectFactory.destroyObject(K key,
PooledObject<V> p)
Destroy an instance no longer needed by the pool.
|
default void |
KeyedPooledObjectFactory.destroyObject(K key,
PooledObject<V> p,
DestroyMode mode)
Destroy an instance no longer needed by the pool, using the provided
DestroyMode . |
void |
PooledObjectFactory.destroyObject(PooledObject<T> p)
Destroys an instance no longer needed by the pool, using the default (NORMAL)
DestroyMode.
|
void |
BasePooledObjectFactory.destroyObject(PooledObject<T> p)
No-op.
|
default void |
PooledObjectFactory.destroyObject(PooledObject<T> p,
DestroyMode mode)
Destroys an instance no longer needed by the pool, using the provided
DestroyMode.
|
void |
KeyedPooledObjectFactory.passivateObject(K key,
PooledObject<V> p)
Uninitialize an instance to be returned to the idle object pool.
|
void |
BaseKeyedPooledObjectFactory.passivateObject(K key,
PooledObject<V> p)
Uninitialize an instance to be returned to the idle object pool.
|
void |
PooledObjectFactory.passivateObject(PooledObject<T> p)
Uninitializes an instance to be returned to the idle object pool.
|
void |
BasePooledObjectFactory.passivateObject(PooledObject<T> p)
No-op.
|
boolean |
KeyedPooledObjectFactory.validateObject(K key,
PooledObject<V> p)
Ensures that the instance is safe to be returned by the pool.
|
boolean |
BaseKeyedPooledObjectFactory.validateObject(K key,
PooledObject<V> p)
Ensures that the instance is safe to be returned by the pool.
|
boolean |
PooledObjectFactory.validateObject(PooledObject<T> p)
Ensures that the instance is safe to be returned by the pool.
|
boolean |
BasePooledObjectFactory.validateObject(PooledObject<T> p)
This implementation always returns
true . |
限定符和类型 | 方法和说明 |
---|---|
boolean |
PooledObject.endEvictionTest(java.util.Deque<PooledObject<T>> idleQueue)
Called to inform the object that the eviction test has ended.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultPooledObject<T>
This wrapper is used to track the additional information, such as state, for
the pooled objects.
|
class |
PooledSoftReference<T>
Extension of
DefaultPooledObject to wrap pooled soft references. |
限定符和类型 | 方法和说明 |
---|---|
int |
DefaultPooledObject.compareTo(PooledObject<T> other) |
boolean |
EvictionPolicy.evict(EvictionConfig config,
PooledObject<T> underTest,
int idleCount)
This method is called to test if an idle object in the pool should be
evicted or not.
|
boolean |
DefaultEvictionPolicy.evict(EvictionConfig config,
PooledObject<T> underTest,
int idleCount) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
DefaultPooledObject.endEvictionTest(java.util.Deque<PooledObject<T>> idleQueue) |
构造器和说明 |
---|
DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Create a new instance for the given pooled object.
|
限定符和类型 | 方法和说明 |
---|---|
PooledObject<Jedis> |
JedisFactory.makeObject() |
限定符和类型 | 方法和说明 |
---|---|
void |
JedisFactory.activateObject(PooledObject<Jedis> pooledJedis) |
void |
JedisFactory.destroyObject(PooledObject<Jedis> pooledJedis) |
void |
JedisFactory.passivateObject(PooledObject<Jedis> pooledJedis) |
boolean |
JedisFactory.validateObject(PooledObject<Jedis> pooledJedis) |