Class OpenManagedDataSource<C extends Connection>
java.lang.Object
org.apache.tomcat.dbcp.dbcp2.PoolingDataSource<C>
org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource<C>
org.frankframework.jdbc.datasource.OpenManagedDataSource<C>
- All Implemented Interfaces:
AutoCloseable
,Wrapper
,CommonDataSource
,DataSource
public class OpenManagedDataSource<C extends Connection>
extends org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource<C>
Extension of
ManagedDataSource
that exposes an extra method to fetch pool statistics.-
Constructor Summary
ConstructorDescriptionOpenManagedDataSource
(org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool<C> pool, org.apache.tomcat.dbcp.dbcp2.managed.TransactionRegistry transactionRegistry) -
Method Summary
Methods inherited from class org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource
getConnection, getTransactionRegistry, setTransactionRegistry
Methods inherited from class org.apache.tomcat.dbcp.dbcp2.PoolingDataSource
close, getConnection, getLoginTimeout, getLogWriter, getParentLogger, isAccessToUnderlyingConnectionAllowed, isWrapperFor, setAccessToUnderlyingConnectionAllowed, setLoginTimeout, setLogWriter, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
OpenManagedDataSource
public OpenManagedDataSource(org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool<C> pool, org.apache.tomcat.dbcp.dbcp2.managed.TransactionRegistry transactionRegistry)
-
-
Method Details
-
getPool
- Overrides:
getPool
in classorg.apache.tomcat.dbcp.dbcp2.PoolingDataSource<C extends Connection>
-