Class PoolUtils.SynchronizedKeyedPooledObjectFactory<K,V>

java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory<K,V>
Type Parameters:
K - pooled object factory key type
V - pooled object factory key value
All Implemented Interfaces:
KeyedPooledObjectFactory<K,V>
Enclosing class:
PoolUtils

private static final class PoolUtils.SynchronizedKeyedPooledObjectFactory<K,V> extends Object implements KeyedPooledObjectFactory<K,V>
A fully synchronized KeyedPooledObjectFactory that wraps a KeyedPooledObjectFactory and synchronizes access to the wrapped factory methods.

Note: This should not be used on pool implementations that already provide proper synchronization such as the pools provided in the Commons Pool library.