Uses of Interface
org.apache.commons.pool2.PooledObject
-
Packages that use PooledObject Package Description org.apache.commons.pool2 Object pooling API.org.apache.commons.pool2.impl Object pooling API implementations. -
-
Uses of PooledObject in org.apache.commons.pool2
Methods in org.apache.commons.pool2 that return PooledObject Modifier and Type Method Description PooledObject<V>BaseKeyedPooledObjectFactory. makeObject(K key)PooledObject<T>BasePooledObjectFactory. makeObject()PooledObject<V>KeyedPooledObjectFactory. makeObject(K key)Creates an instance that can be served by the pool and wrap it in aPooledObjectto be managed by the pool.PooledObject<T>PooledObjectFactory. makeObject()Creates an instance that can be served by the pool and wrap it in aPooledObjectto be managed by the pool.PooledObject<V>PoolUtils.SynchronizedKeyedPooledObjectFactory. makeObject(K key)Creates an instance that can be served by the pool and wrap it in aPooledObjectto be managed by the pool.PooledObject<T>PoolUtils.SynchronizedPooledObjectFactory. makeObject()Creates an instance that can be served by the pool and wrap it in aPooledObjectto be managed by the pool.abstract PooledObject<V>BaseKeyedPooledObjectFactory. wrap(V value)Wraps the provided instance with an implementation ofPooledObject.abstract PooledObject<T>BasePooledObjectFactory. wrap(T obj)Wraps the provided instance with an implementation ofPooledObject.Methods in org.apache.commons.pool2 with parameters of type PooledObject Modifier and Type Method Description voidBaseKeyedPooledObjectFactory. 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.voidPoolUtils.SynchronizedKeyedPooledObjectFactory. activateObject(K key, PooledObject<V> p)Reinitializes an instance to be returned by the pool.voidPoolUtils.SynchronizedPooledObjectFactory. 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.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.voidPoolUtils.SynchronizedKeyedPooledObjectFactory. destroyObject(K key, PooledObject<V> p)Destroys an instance no longer needed by the pool.voidPoolUtils.SynchronizedPooledObjectFactory. destroyObject(PooledObject<T> p)Destroys an instance no longer needed by the pool, using the default (NORMAL) DestroyMode.static <T> TPooledObject. getObject(PooledObject<T> pooledObject)Gets the wrapped object or null.static booleanPooledObject. isNull(PooledObject<?> pooledObject)Tests whether the given PooledObject is null or wraps a null.static booleanPooledObject. nonNull(PooledObject<?> pooledObject)Tests whether the given PooledObject isn't null and doesn't wraps 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.voidPoolUtils.SynchronizedKeyedPooledObjectFactory. passivateObject(K key, PooledObject<V> p)Uninitializes an instance to be returned to the idle object pool.voidPoolUtils.SynchronizedPooledObjectFactory. 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.booleanPoolUtils.SynchronizedKeyedPooledObjectFactory. validateObject(K key, PooledObject<V> p)Ensures that the instance is safe to be returned by the pool.booleanPoolUtils.SynchronizedPooledObjectFactory. 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 PooledObject Modifier and Type Method Description booleanPooledObject. endEvictionTest(java.util.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 PooledObject Modifier and Type Class Description classDefaultPooledObject<T>This wrapper is used to track the additional information, such as state, for the pooled objects.classPooledSoftReference<T>Extension ofDefaultPooledObjectto wrap pooled soft references.Fields in org.apache.commons.pool2.impl declared as PooledObject Modifier and Type Field Description private PooledObject<?>DefaultPooledObjectInfo. pooledObjectFields in org.apache.commons.pool2.impl with type parameters of type PooledObject Modifier and Type Field Description private java.util.Map<BaseGenericObjectPool.IdentityWrapper<S>,PooledObject<S>>GenericKeyedObjectPool.ObjectDeque. allObjectsprivate java.util.concurrent.ConcurrentHashMap<BaseGenericObjectPool.IdentityWrapper<T>,PooledObject<T>>GenericObjectPool. allObjectsprivate java.util.Iterator<PooledObject<T>>BaseGenericObjectPool.EvictionIterator. idleObjectIteratorprivate java.util.Deque<PooledObject<T>>BaseGenericObjectPool.EvictionIterator. idleObjectsprivate LinkedBlockingDeque<PooledObject<S>>GenericKeyedObjectPool.ObjectDeque. idleObjectsprivate LinkedBlockingDeque<PooledObject<T>>GenericObjectPool. idleObjectsMethods in org.apache.commons.pool2.impl that return PooledObject Modifier and Type Method Description private PooledObject<T>GenericKeyedObjectPool. create(K key, java.time.Duration maxWaitDuration)Creates a new pooled object or null.private PooledObject<T>GenericObjectPool. create(java.time.Duration maxWaitDurationRequest)Attempts to create a new wrapped pooled object.(package private) PooledObject<T>GenericObjectPool. getPooledObject(T obj)PooledObject<T>BaseGenericObjectPool.EvictionIterator. next()Methods in org.apache.commons.pool2.impl that return types with arguments of type PooledObject Modifier and Type Method Description (package private) java.util.ArrayList<PooledObject<T>>BaseGenericObjectPool. createRemoveList(AbandonedConfig abandonedConfig, java.util.Map<BaseGenericObjectPool.IdentityWrapper<T>,PooledObject<T>> allObjects)Creates a list of pooled objects to remove based on their state.(package private) java.util.Map<BaseGenericObjectPool.IdentityWrapper<S>,PooledObject<S>>GenericKeyedObjectPool.ObjectDeque. getAllObjects()Gets all the objects for the current key.java.util.Deque<PooledObject<T>>BaseGenericObjectPool.EvictionIterator. getIdleObjects()Gets the idle object deque referenced by this iterator.(package private) LinkedBlockingDeque<PooledObject<S>>GenericKeyedObjectPool.ObjectDeque. getIdleObjects()Gets the idle objects for the current key.Methods in org.apache.commons.pool2.impl with parameters of type PooledObject Modifier and Type Method Description private voidGenericKeyedObjectPool. addIdleObject(K key, PooledObject<T> p)Add an object to the set of idle objects for a given key.private voidGenericObjectPool. addIdleObject(PooledObject<T> p)Adds the provided wrapped pooled object to the set of idle objects for this pool.intDefaultPooledObject. compareTo(PooledObject<T> other)private booleanGenericKeyedObjectPool. destroy(K key, PooledObject<T> toDestroy, boolean always, DestroyMode destroyMode)Destroy the wrapped, pooled object.private voidGenericObjectPool. destroy(PooledObject<T> toDestroy, DestroyMode destroyMode)Destroys a wrapped pooled object.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.(package private) static <T> BaseGenericObjectPool.IdentityWrapper<T>BaseGenericObjectPool.IdentityWrapper. unwrap(PooledObject<T> p)Creates a new instance for the object inside aPooledObject.(package private) voidBaseGenericObjectPool. updateStatsBorrow(PooledObject<T> p, java.time.Duration waitDuration)Updates statistics after an object is borrowed from the pool.Method parameters in org.apache.commons.pool2.impl with type arguments of type PooledObject Modifier and Type Method Description (package private) java.util.ArrayList<PooledObject<T>>BaseGenericObjectPool. createRemoveList(AbandonedConfig abandonedConfig, java.util.Map<BaseGenericObjectPool.IdentityWrapper<T>,PooledObject<T>> allObjects)Creates a list of pooled objects to remove based on their state.booleanDefaultPooledObject. endEvictionTest(java.util.Deque<PooledObject<T>> idleQueue)private voidGenericKeyedObjectPool. whenWaitersAddObject(K key, LinkedBlockingDeque<PooledObject<T>> idleObjects)When there is at least one thread waiting on the given deque, try to add an instance to pool under the given key.Constructors in org.apache.commons.pool2.impl with parameters of type PooledObject Constructor Description DefaultPooledObjectInfo(PooledObject<?> pooledObject)Constructs a new instance for the given pooled object.Constructor parameters in org.apache.commons.pool2.impl with type arguments of type PooledObject Constructor Description EvictionIterator(java.util.Deque<PooledObject<T>> idleObjects)Constructs an EvictionIterator for the provided idle instance deque.
-