Class PoolingDataSourceFactory
java.lang.Object
org.frankframework.jdbc.datasource.ObjectFactory<CommonDataSource,CommonDataSource>
org.frankframework.jdbc.datasource.DataSourceFactory
org.frankframework.jdbc.datasource.PoolingDataSourceFactory
- All Implemented Interfaces:
IDataSourceFactory
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AbstractXADataSourceFactory
,LadyBugDataSourceFactory
Factory through which (TX-enabled) Pooling DataSources can be retrieved.
Already created DataSources are stored in a ConcurrentHashMap.
Every DataSource can be augmented before it is added.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.jdbc.datasource.ObjectFactory
ObjectFactory.ObjectInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
protected int
protected String
Fields inherited from class org.frankframework.jdbc.datasource.ObjectFactory
log
Fields inherited from interface org.frankframework.jdbc.IDataSourceFactory
DEFAULT_DATASOURCE_NAME_PROPERTY, GLOBAL_DEFAULT_DATASOURCE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSource
augmentDatasource
(CommonDataSource dataSource, String dataSourceName) Allow implementing classes to augment the DataSource.protected org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool
<org.apache.tomcat.dbcp.dbcp2.PoolableConnection> createConnectionPool
(org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory poolableConnectionFactory) protected DataSource
createPool
(DataSource dataSource, String dataSourceName) Methods inherited from class org.frankframework.jdbc.datasource.DataSourceFactory
augment, getDataSource, getDataSource, getDataSourceNames, toObjectInfo
Methods inherited from class org.frankframework.jdbc.datasource.ObjectFactory
add, afterPropertiesSet, destroy, get, getObjectInfo, getObjectNames, map
-
Field Details
-
minIdle
protected int minIdle -
maxPoolSize
protected int maxPoolSize -
maxIdle
protected int maxIdle -
maxLifeTime
protected int maxLifeTime -
connectionCheckInterval
protected int connectionCheckInterval -
testQuery
-
-
Constructor Details
-
PoolingDataSourceFactory
public PoolingDataSourceFactory()
-
-
Method Details
-
augmentDatasource
Description copied from class:DataSourceFactory
Allow implementing classes to augment the DataSource. SeeDataSourceFactory.augment(CommonDataSource, String)
.- Overrides:
augmentDatasource
in classDataSourceFactory
-
createPool
-
createConnectionPool
protected org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool<org.apache.tomcat.dbcp.dbcp2.PoolableConnection> createConnectionPool(org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory poolableConnectionFactory)
-