Package com.logicaldoc.core.util
Class ConnectionPool
java.lang.Object
com.logicaldoc.core.util.ConnectionPool
- All Implemented Interfaces:
 Closeable,AutoCloseable,Wrapper,CommonDataSource,DataSource
A configurable connection pool that wraps different technologies, you decide
 the implementation through the implementation setting: hikari or dbcp
- Since:
 - 8.2
 - Author:
 - Marco Meschieri - LogicalDOC
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getConnection(String username, String password) intvoidinit()booleanisWrapperFor(Class<?> iface) voidsetDbcpConfig(DbcpConfig dbcpConfig) voidsetHikariConfig(com.zaxxer.hikari.HikariConfig hikaryConfig) voidsetImplementation(String implementation) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) <T> TMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder 
- 
Constructor Details
- 
ConnectionPool
public ConnectionPool() 
 - 
 - 
Method Details
- 
getWrappedDataSource
 - 
setHikariConfig
public void setHikariConfig(com.zaxxer.hikari.HikariConfig hikaryConfig)  - 
getLogWriter
- Specified by:
 getLogWriterin interfaceCommonDataSource- Specified by:
 getLogWriterin interfaceDataSource- Throws:
 SQLException
 - 
unwrap
- Specified by:
 unwrapin interfaceWrapper- Throws:
 SQLException
 - 
setLogWriter
- Specified by:
 setLogWriterin interfaceCommonDataSource- Specified by:
 setLogWriterin interfaceDataSource- Throws:
 SQLException
 - 
isWrapperFor
- Specified by:
 isWrapperForin interfaceWrapper- Throws:
 SQLException
 - 
getConnection
- Specified by:
 getConnectionin interfaceDataSource- Throws:
 SQLException
 - 
setLoginTimeout
- Specified by:
 setLoginTimeoutin interfaceCommonDataSource- Specified by:
 setLoginTimeoutin interfaceDataSource- Throws:
 SQLException
 - 
getConnection
- Specified by:
 getConnectionin interfaceDataSource- Throws:
 SQLException
 - 
getLoginTimeout
- Specified by:
 getLoginTimeoutin interfaceCommonDataSource- Specified by:
 getLoginTimeoutin interfaceDataSource- Throws:
 SQLException
 - 
getParentLogger
- Specified by:
 getParentLoggerin interfaceCommonDataSource- Throws:
 SQLFeatureNotSupportedException
 - 
init
public void init() - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Throws:
 IOException
 - 
setImplementation
 - 
setDbcpConfig
 
 -