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.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.
|
Modifier and Type | Method and Description |
---|---|
PooledObject<PoolableConnection> |
PoolableConnectionFactory.makeObject() |
PooledObject<DelegatingPreparedStatement> |
PoolingConnection.makeObject(PStmtKey key)
KeyedPooledObjectFactory method for creating PoolablePreparedStatement s or
PoolableCallableStatement s. |
Modifier and Type | Method and 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)
|
boolean |
PoolableConnectionFactory.validateObject(PooledObject<PoolableConnection> p) |
boolean |
PoolingConnection.validateObject(PStmtKey key,
PooledObject<DelegatingPreparedStatement> pooledObject)
KeyedPooledObjectFactory method for validating pooled statements. |
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
void |
PooledObjectFactory.destroyObject(PooledObject<T> p)
Destroys an instance no longer needed by the pool.
|
void |
BasePooledObjectFactory.destroyObject(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 |
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 . |
Modifier and Type | Method and Description |
---|---|
boolean |
PooledObject.endEvictionTest(Deque<PooledObject<T>> idleQueue)
Called to inform the object that the eviction test has ended.
|
Modifier and Type | Class and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
int |
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)
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultPooledObject.endEvictionTest(Deque<PooledObject<T>> idleQueue) |
Constructor and Description |
---|
DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Create a new instance for the given pooled object.
|
Copyright © 2020. All rights reserved.