Class DBCP2ConnectionPoolFactory.DBCPConnectionPool
java.lang.Object
org.datanucleus.store.rdbms.connectionpool.DBCP2ConnectionPoolFactory.DBCPConnectionPool
- All Implemented Interfaces:
ConnectionPool
- Enclosing class:
DBCP2ConnectionPoolFactory
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.apache.commons.dbcp2.PoolingDataSource
(package private) final org.apache.commons.pool2.ObjectPool
-
Constructor Summary
ConstructorsConstructorDescriptionDBCPConnectionPool
(org.apache.commons.dbcp2.PoolingDataSource ds, org.apache.commons.pool2.ObjectPool pool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Method to call when closing the StoreManager down, and consequently to close the pool.Accessor for the pooled DataSource.
-
Field Details
-
dataSource
final org.apache.commons.dbcp2.PoolingDataSource dataSource -
pool
final org.apache.commons.pool2.ObjectPool pool
-
-
Constructor Details
-
DBCPConnectionPool
public DBCPConnectionPool(org.apache.commons.dbcp2.PoolingDataSource ds, org.apache.commons.pool2.ObjectPool pool)
-
-
Method Details
-
close
public void close()Description copied from interface:ConnectionPool
Method to call when closing the StoreManager down, and consequently to close the pool.- Specified by:
close
in interfaceConnectionPool
-
getDataSource
Description copied from interface:ConnectionPool
Accessor for the pooled DataSource.- Specified by:
getDataSource
in interfaceConnectionPool
- Returns:
- The DataSource
-