Uses of Interface
org.apache.commons.pool2.PooledObject
Package
Description
Object pooling API.
Object pooling API implementations.
-
Uses of PooledObject in org.apache.commons.pool2
Modifier and TypeMethodDescriptionBaseKeyedPooledObjectFactory.makeObject
(K key) BasePooledObjectFactory.makeObject()
KeyedPooledObjectFactory.makeObject
(K key) Creates an instance that can be served by the pool and wrap it in aPooledObject
to be managed by the pool.PooledObjectFactory.makeObject()
Creates an instance that can be served by the pool and wrap it in aPooledObject
to be managed by the pool.abstract PooledObject<V>
Wraps the provided instance with an implementation ofPooledObject
.abstract PooledObject<T>
Wraps the provided instance with an implementation ofPooledObject
.Modifier and TypeMethodDescriptionvoid
BaseKeyedPooledObjectFactory.activateObject
(K key, PooledObject<V> p) Reinitializes an instance to be returned by the pool.void
BasePooledObjectFactory.activateObject
(PooledObject<T> p) No-op.void
KeyedPooledObjectFactory.activateObject
(K key, PooledObject<V> p) Reinitializes an instance to be returned by the pool.void
PooledObjectFactory.activateObject
(PooledObject<T> p) Reinitializes an instance to be returned by the pool.int
PooledObject.compareTo
(PooledObject<T> other) Orders instances based on idle time - i.e.void
BaseKeyedPooledObjectFactory.destroyObject
(K key, PooledObject<V> p) Destroys an instance no longer needed by the pool.void
BasePooledObjectFactory.destroyObject
(PooledObject<T> p) No-op.void
KeyedPooledObjectFactory.destroyObject
(K key, PooledObject<V> p) Destroys an instance no longer needed by the pool.default void
KeyedPooledObjectFactory.destroyObject
(K key, PooledObject<V> p, DestroyMode destroyMode) Destroys an instance no longer needed by the pool, using the providedDestroyMode
.void
PooledObjectFactory.destroyObject
(PooledObject<T> p) Destroys an instance no longer needed by the pool, using the default (NORMAL) DestroyMode.default void
PooledObjectFactory.destroyObject
(PooledObject<T> p, DestroyMode destroyMode) Destroys an instance no longer needed by the pool, using the provided DestroyMode.static boolean
PooledObject.isNull
(PooledObject<?> pooledObject) Tests whether the given PooledObject is null or contains a null.void
BaseKeyedPooledObjectFactory.passivateObject
(K key, PooledObject<V> p) Uninitializes an instance to be returned to the idle object pool.void
BasePooledObjectFactory.passivateObject
(PooledObject<T> p) No-op.void
KeyedPooledObjectFactory.passivateObject
(K key, PooledObject<V> p) Uninitializes 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.boolean
BaseKeyedPooledObjectFactory.validateObject
(K key, PooledObject<V> p) Ensures that the instance is safe to be returned by the pool.boolean
BasePooledObjectFactory.validateObject
(PooledObject<T> p) Always returnstrue
.boolean
KeyedPooledObjectFactory.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.Modifier and TypeMethodDescriptionboolean
PooledObject.endEvictionTest
(Deque<PooledObject<T>> idleQueue) Notifies the object that the eviction test has ended. -
Uses of PooledObject in org.apache.commons.pool2.impl
Modifier and TypeClassDescriptionclass
This wrapper is used to track the additional information, such as state, for the pooled objects.class
Extension ofDefaultPooledObject
to wrap pooled soft references.Modifier and TypeMethodDescriptionint
DefaultPooledObject.compareTo
(PooledObject<T> other) boolean
DefaultEvictionPolicy.evict
(EvictionConfig config, PooledObject<T> underTest, int idleCount) boolean
EvictionPolicy.evict
(EvictionConfig config, PooledObject<T> underTest, int idleCount) Tests if an idle object in the pool should be evicted or not.protected void
BaseGenericObjectPool.markReturningState
(PooledObject<T> pooledObject) Marks the object as returning to the pool.Modifier and TypeMethodDescriptionboolean
DefaultPooledObject.endEvictionTest
(Deque<PooledObject<T>> idleQueue) ModifierConstructorDescriptionDefaultPooledObjectInfo
(PooledObject<?> pooledObject) Constructs a new instance for the given pooled object.