Uses of Interface
org.datanucleus.store.rdbms.datasource.dbcp2.pool2.PooledObject
-
Packages that use PooledObject Package Description org.datanucleus.store.rdbms.datasource.dbcp2 This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.org.datanucleus.store.rdbms.datasource.dbcp2.cpdsadapter This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.org.datanucleus.store.rdbms.datasource.dbcp2.datasources This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.org.datanucleus.store.rdbms.datasource.dbcp2.pool2 This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0.org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl This is a repackaged Apache Commons DBCP v2.7.0 and Apache Commons Pool v2.8.0. -
-
Uses of PooledObject in org.datanucleus.store.rdbms.datasource.dbcp2
Methods in org.datanucleus.store.rdbms.datasource.dbcp2 that return PooledObject Modifier and Type Method Description PooledObject<PoolableConnection>
PoolableConnectionFactory. makeObject()
PooledObject<DelegatingPreparedStatement>
PoolingConnection. makeObject(PStmtKey key)
KeyedPooledObjectFactory
method for creatingPoolablePreparedStatement
s orPoolableCallableStatement
s.Methods in org.datanucleus.store.rdbms.datasource.dbcp2 with parameters of type PooledObject Modifier and Type Method Description void
PoolableConnectionFactory. activateObject(PooledObject<PoolableConnection> p)
void
PoolingConnection. activateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
KeyedPooledObjectFactory
method for activating pooled statements.void
PoolableConnectionFactory. destroyObject(PooledObject<PoolableConnection> p)
void
PoolingConnection. destroyObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
KeyedPooledObjectFactory
method for destroying PoolablePreparedStatements and PoolableCallableStatements.void
PoolableConnectionFactory. passivateObject(PooledObject<PoolableConnection> p)
void
PoolingConnection. passivateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
private void
PoolableConnectionFactory. validateLifetime(PooledObject<PoolableConnection> p)
boolean
PoolableConnectionFactory. validateObject(PooledObject<PoolableConnection> p)
boolean
PoolingConnection. validateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
KeyedPooledObjectFactory
method for validating pooled statements. -
Uses of PooledObject in org.datanucleus.store.rdbms.datasource.dbcp2.cpdsadapter
Methods in org.datanucleus.store.rdbms.datasource.dbcp2.cpdsadapter that return PooledObject Modifier and Type Method Description PooledObject<DelegatingPreparedStatement>
PooledConnectionImpl. makeObject(PStmtKey key)
MyKeyedPooledObjectFactory
method for creatingPreparedStatement
s.Methods in org.datanucleus.store.rdbms.datasource.dbcp2.cpdsadapter with parameters of type PooledObject Modifier and Type Method Description void
PooledConnectionImpl. activateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
MyKeyedPooledObjectFactory
method for activatingPreparedStatement
s.void
PooledConnectionImpl. destroyObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
MyKeyedPooledObjectFactory
method for destroyingPreparedStatement
s.void
PooledConnectionImpl. passivateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
MyKeyedPooledObjectFactory
method for passivatingPreparedStatement
s.boolean
PooledConnectionImpl. validateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)
MyKeyedPooledObjectFactory
method for validatingPreparedStatement
s. -
Uses of PooledObject in org.datanucleus.store.rdbms.datasource.dbcp2.datasources
Methods in org.datanucleus.store.rdbms.datasource.dbcp2.datasources that return PooledObject Modifier and Type Method Description PooledObject<PooledConnectionAndInfo>
CPDSConnectionFactory. makeObject()
PooledObject<PooledConnectionAndInfo>
KeyedCPDSConnectionFactory. makeObject(UserPassKey upkey)
Creates a newPooledConnectionAndInfo
from the givenUserPassKey
.Methods in org.datanucleus.store.rdbms.datasource.dbcp2.datasources with parameters of type PooledObject Modifier and Type Method Description void
CPDSConnectionFactory. activateObject(PooledObject<PooledConnectionAndInfo> p)
void
KeyedCPDSConnectionFactory. activateObject(UserPassKey key, PooledObject<PooledConnectionAndInfo> p)
void
CPDSConnectionFactory. destroyObject(PooledObject<PooledConnectionAndInfo> p)
Closes the PooledConnection and stops listening for events from it.void
KeyedCPDSConnectionFactory. destroyObject(UserPassKey key, PooledObject<PooledConnectionAndInfo> p)
Closes the PooledConnection and stops listening for events from it.void
CPDSConnectionFactory. passivateObject(PooledObject<PooledConnectionAndInfo> p)
void
KeyedCPDSConnectionFactory. passivateObject(UserPassKey key, PooledObject<PooledConnectionAndInfo> p)
private void
CPDSConnectionFactory. validateLifetime(PooledObject<PooledConnectionAndInfo> p)
private void
KeyedCPDSConnectionFactory. validateLifetime(PooledObject<PooledConnectionAndInfo> p)
boolean
CPDSConnectionFactory. validateObject(PooledObject<PooledConnectionAndInfo> p)
boolean
KeyedCPDSConnectionFactory. validateObject(UserPassKey key, PooledObject<PooledConnectionAndInfo> pooledObject)
Validates a pooled connection. -
Uses of PooledObject in org.datanucleus.store.rdbms.datasource.dbcp2.pool2
Methods in org.datanucleus.store.rdbms.datasource.dbcp2.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)
Create an instance that can be served by the pool and wrap it in aPooledObject
to be managed by the pool.PooledObject<T>
PooledObjectFactory. makeObject()
Creates an instance that can be served by the pool and wrap it in aPooledObject
to be managed by the pool.PooledObject<V>
PoolUtils.SynchronizedKeyedPooledObjectFactory. makeObject(K key)
Create an instance that can be served by the pool and wrap it in aPooledObject
to be managed by the pool.PooledObject<T>
PoolUtils.SynchronizedPooledObjectFactory. 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>
BaseKeyedPooledObjectFactory. wrap(V value)
Wrap the provided instance with an implementation ofPooledObject
.abstract PooledObject<T>
BasePooledObjectFactory. wrap(T obj)
Wrap the provided instance with an implementation ofPooledObject
.Methods in org.datanucleus.store.rdbms.datasource.dbcp2.pool2 with parameters of type PooledObject Modifier and Type Method Description void
BaseKeyedPooledObjectFactory. activateObject(K key, PooledObject<V> p)
Reinitialize an instance to be returned by the pool.void
BasePooledObjectFactory. activateObject(PooledObject<T> p)
No-op.void
KeyedPooledObjectFactory. 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
PoolUtils.SynchronizedKeyedPooledObjectFactory. activateObject(K key, PooledObject<V> p)
Reinitialize an instance to be returned by the pool.void
PoolUtils.SynchronizedPooledObjectFactory. 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)
Destroy an instance no longer needed by the pool.void
BasePooledObjectFactory. destroyObject(PooledObject<T> p)
No-op.void
KeyedPooledObjectFactory. destroyObject(K key, PooledObject<V> p)
Destroy an instance no longer needed by the pool.void
PooledObjectFactory. destroyObject(PooledObject<T> p)
Destroys an instance no longer needed by the pool.void
PoolUtils.SynchronizedKeyedPooledObjectFactory. destroyObject(K key, PooledObject<V> p)
Destroy an instance no longer needed by the pool.void
PoolUtils.SynchronizedPooledObjectFactory. destroyObject(PooledObject<T> p)
Destroys an instance no longer needed by the pool.void
BaseKeyedPooledObjectFactory. passivateObject(K key, PooledObject<V> p)
Uninitialize 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)
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
PoolUtils.SynchronizedKeyedPooledObjectFactory. passivateObject(K key, PooledObject<V> p)
Uninitialize an instance to be returned to the idle object pool.void
PoolUtils.SynchronizedPooledObjectFactory. 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)
This implementation 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.boolean
PoolUtils.SynchronizedKeyedPooledObjectFactory. validateObject(K key, PooledObject<V> p)
Ensures that the instance is safe to be returned by the pool.boolean
PoolUtils.SynchronizedPooledObjectFactory. validateObject(PooledObject<T> p)
Ensures that the instance is safe to be returned by the pool.Method parameters in org.datanucleus.store.rdbms.datasource.dbcp2.pool2 with type arguments of type PooledObject Modifier and Type Method Description boolean
PooledObject. endEvictionTest(java.util.Deque<PooledObject<T>> idleQueue)
Called to inform the object that the eviction test has ended. -
Uses of PooledObject in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl
Classes in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl that implement PooledObject Modifier and Type Class Description class
DefaultPooledObject<T>
This wrapper is used to track the additional information, such as state, for the pooled objects.class
PooledSoftReference<T>
Extension ofDefaultPooledObject
to wrap pooled soft references.Fields in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl declared as PooledObject Modifier and Type Field Description private PooledObject<?>
DefaultPooledObjectInfo. pooledObject
Fields in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl with type parameters of type PooledObject Modifier and Type Field Description private java.util.Map<BaseGenericObjectPool.IdentityWrapper<S>,PooledObject<S>>
GenericKeyedObjectPool.ObjectDeque. allObjects
private java.util.Map<BaseGenericObjectPool.IdentityWrapper<T>,PooledObject<T>>
GenericObjectPool. allObjects
private java.util.Iterator<PooledObject<T>>
BaseGenericObjectPool.EvictionIterator. idleObjectIterator
private java.util.Deque<PooledObject<T>>
BaseGenericObjectPool.EvictionIterator. idleObjects
private LinkedBlockingDeque<PooledObject<S>>
GenericKeyedObjectPool.ObjectDeque. idleObjects
private LinkedBlockingDeque<PooledObject<T>>
GenericObjectPool. idleObjects
Methods in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl that return PooledObject Modifier and Type Method Description private PooledObject<T>
GenericKeyedObjectPool. create(K key)
Create a new pooled object.private PooledObject<T>
GenericObjectPool. create()
Attempts to create a new wrapped pooled object.PooledObject<T>
BaseGenericObjectPool.EvictionIterator. next()
Methods in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl that return types with arguments of type PooledObject Modifier and Type Method Description java.util.Map<BaseGenericObjectPool.IdentityWrapper<S>,PooledObject<S>>
GenericKeyedObjectPool.ObjectDeque. getAllObjects()
Obtain all the objects for the current key.java.util.Deque<PooledObject<T>>
BaseGenericObjectPool.EvictionIterator. getIdleObjects()
Returns the idle object deque referenced by this iterator.LinkedBlockingDeque<PooledObject<S>>
GenericKeyedObjectPool.ObjectDeque. getIdleObjects()
Obtain the idle objects for the current key.Methods in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl with parameters of type PooledObject Modifier and Type Method Description private void
GenericKeyedObjectPool. addIdleObject(K key, PooledObject<T> p)
Add an object to the set of idle objects for a given key.private void
GenericObjectPool. addIdleObject(PooledObject<T> p)
Adds the provided wrapped pooled object to the set of idle objects for this pool.int
DefaultPooledObject. compareTo(PooledObject<T> other)
private boolean
GenericKeyedObjectPool. destroy(K key, PooledObject<T> toDestroy, boolean always)
Destroy the wrapped, pooled object.private void
GenericObjectPool. destroy(PooledObject<T> toDestroy)
Destroys a wrapped pooled object.boolean
DefaultEvictionPolicy. evict(EvictionConfig config, PooledObject<T> underTest, int idleCount)
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.protected void
BaseGenericObjectPool. markReturningState(PooledObject<T> pooledObject)
Marks the object as returning to the pool.(package private) void
BaseGenericObjectPool. updateStatsBorrow(PooledObject<T> p, long waitTime)
Updates statistics after an object is borrowed from the pool.Method parameters in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl with type arguments of type PooledObject Modifier and Type Method Description boolean
DefaultPooledObject. endEvictionTest(java.util.Deque<PooledObject<T>> idleQueue)
private void
GenericKeyedObjectPool. whenWaitersAddObject(K key, LinkedBlockingDeque<PooledObject<T>> idleObjects)
Whether there is at least one thread waiting on this deque, add an pool object.Constructors in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl with parameters of type PooledObject Constructor Description DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Create a new instance for the given pooled object.Constructor parameters in org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl with type arguments of type PooledObject Constructor Description EvictionIterator(java.util.Deque<PooledObject<T>> idleObjects)
Create an EvictionIterator for the provided idle instance deque.
-