Uses of Interface
org.apache.commons.pool2.PooledObject
Packages that use PooledObject
Package
Description
Object pooling API.
Object pooling API implementations.
-
Uses of PooledObject in org.apache.commons.pool2
Methods in org.apache.commons.pool2 that return PooledObjectModifier 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 aPooledObjectto be managed by the pool.PooledObjectFactory.makeObject()Creates an instance that can be served by the pool and wrap it in aPooledObjectto 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.Methods in org.apache.commons.pool2 with parameters of type PooledObjectModifier and TypeMethodDescriptionvoidBaseKeyedPooledObjectFactory.activateObject(K key, PooledObject<V> p) Reinitializes an instance to be returned by the pool.voidBasePooledObjectFactory.activateObject(PooledObject<T> p) No-op.voidKeyedPooledObjectFactory.activateObject(K key, PooledObject<V> p) Reinitializes an instance to be returned by the pool.voidPooledObjectFactory.activateObject(PooledObject<T> p) Reinitializes an instance to be returned by the pool.intPooledObject.compareTo(PooledObject<T> other) Orders instances based on idle time - i.e. the length of time since the instance was returned to the pool.voidBaseKeyedPooledObjectFactory.destroyObject(K key, PooledObject<V> p) Destroys an instance no longer needed by the pool.voidBasePooledObjectFactory.destroyObject(PooledObject<T> p) No-op.voidKeyedPooledObjectFactory.destroyObject(K key, PooledObject<V> p) Destroys an instance no longer needed by the pool.default voidKeyedPooledObjectFactory.destroyObject(K key, PooledObject<V> p, DestroyMode destroyMode) Destroys an instance no longer needed by the pool, using the providedDestroyMode.voidPooledObjectFactory.destroyObject(PooledObject<T> p) Destroys an instance no longer needed by the pool, using the default (NORMAL) DestroyMode.default voidPooledObjectFactory.destroyObject(PooledObject<T> p, DestroyMode destroyMode) Destroys an instance no longer needed by the pool, using the provided DestroyMode.static booleanPooledObject.isNull(PooledObject<?> pooledObject) Tests whether the given PooledObject is null or contains a null.voidBaseKeyedPooledObjectFactory.passivateObject(K key, PooledObject<V> p) Uninitializes an instance to be returned to the idle object pool.voidBasePooledObjectFactory.passivateObject(PooledObject<T> p) No-op.voidKeyedPooledObjectFactory.passivateObject(K key, PooledObject<V> p) Uninitializes an instance to be returned to the idle object pool.voidPooledObjectFactory.passivateObject(PooledObject<T> p) Uninitializes an instance to be returned to the idle object pool.booleanBaseKeyedPooledObjectFactory.validateObject(K key, PooledObject<V> p) Ensures that the instance is safe to be returned by the pool.booleanBasePooledObjectFactory.validateObject(PooledObject<T> p) Always returnstrue.booleanKeyedPooledObjectFactory.validateObject(K key, PooledObject<V> p) Ensures that the instance is safe to be returned by the pool.booleanPooledObjectFactory.validateObject(PooledObject<T> p) Ensures that the instance is safe to be returned by the pool.Method parameters in org.apache.commons.pool2 with type arguments of type PooledObjectModifier and TypeMethodDescriptionbooleanPooledObject.endEvictionTest(Deque<PooledObject<T>> idleQueue) Notifies the object that the eviction test has ended. -
Uses of PooledObject in org.apache.commons.pool2.impl
Classes in org.apache.commons.pool2.impl that implement PooledObjectModifier and TypeClassDescriptionclassThis wrapper is used to track the additional information, such as state, for the pooled objects.classExtension ofDefaultPooledObjectto wrap pooled soft references.Methods in org.apache.commons.pool2.impl with parameters of type PooledObjectModifier and TypeMethodDescriptionintDefaultPooledObject.compareTo(PooledObject<T> other) booleanDefaultEvictionPolicy.evict(EvictionConfig config, PooledObject<T> underTest, int idleCount) booleanEvictionPolicy.evict(EvictionConfig config, PooledObject<T> underTest, int idleCount) Tests if an idle object in the pool should be evicted or not.protected voidBaseGenericObjectPool.markReturningState(PooledObject<T> pooledObject) Marks the object as returning to the pool.Method parameters in org.apache.commons.pool2.impl with type arguments of type PooledObjectModifier and TypeMethodDescriptionbooleanDefaultPooledObject.endEvictionTest(Deque<PooledObject<T>> idleQueue) Constructors in org.apache.commons.pool2.impl with parameters of type PooledObjectModifierConstructorDescriptionDefaultPooledObjectInfo(PooledObject<?> pooledObject) Constructs a new instance for the given pooled object.