Class JdbcConnectionPools
- java.lang.Object
-
- org.apache.flink.cdc.connectors.mysql.source.connection.JdbcConnectionPools
-
- All Implemented Interfaces:
ConnectionPools
public class JdbcConnectionPools extends Object implements ConnectionPools
A Jdbc Connection pools implementation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static JdbcConnectionPoolsgetInstance()com.zaxxer.hikari.HikariDataSourcegetOrCreateConnectionPool(ConnectionPoolId poolId, MySqlSourceConfig sourceConfig)Gets a connection pool from pools, create a new pool if the pool does not exists in the connection pools .
-
-
-
Method Detail
-
getInstance
public static JdbcConnectionPools getInstance()
-
getOrCreateConnectionPool
public com.zaxxer.hikari.HikariDataSource getOrCreateConnectionPool(ConnectionPoolId poolId, MySqlSourceConfig sourceConfig)
Description copied from interface:ConnectionPoolsGets a connection pool from pools, create a new pool if the pool does not exists in the connection pools .- Specified by:
getOrCreateConnectionPoolin interfaceConnectionPools
-
clear
public void clear() throws IOException- Throws:
IOException
-
-