public final class YankPoolManager extends Object
This class should not be directly accessed by client code.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_POOL_NAME |
protected static YankPoolManager |
INSTANCE
The singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConnectionPool(String poolName,
Properties connectionPoolProperties)
Add properties for a DataSource (connection pool).
|
protected void |
addDefaultConnectionPool(Properties dataSourceProperties)
Add properties for a DataSource (connection pool).
|
protected void |
addSQLStatements(Properties sqlProperties) |
protected com.zaxxer.hikari.HikariDataSource |
getConnectionPool(String poolName)
Get a connection pool
|
protected com.zaxxer.hikari.HikariDataSource |
getDefaultConnectionPool()
Get the default connection pool
|
protected Properties |
getMergedSqlProperties() |
protected void |
releaseAllConnectionPools()
Closes a connection pool
|
protected void |
releaseConnectionPool(String poolName)
Closes a connection pool
|
protected void |
releaseDataSource()
Deprecated.
|
protected void |
releaseDefaultConnectionPool()
Closes the default connection pool
|
protected static final YankPoolManager INSTANCE
protected static final String DEFAULT_POOL_NAME
protected void addDefaultConnectionPool(Properties dataSourceProperties)
This convenience method will create a connection pool in the default pool.
Note that if you call this method repeatedly, the existing default pool will be first shutdown each time.
dataSourceProperties - protected void addConnectionPool(String poolName, Properties connectionPoolProperties)
Note that if you call this method providing a poolName corresponding to an existing connection pool, the existing pool will be first shutdown.
poolName - connectionPoolProperties - @Deprecated protected void releaseDataSource()
protected void releaseDefaultConnectionPool()
protected void releaseConnectionPool(String poolName)
poolName - protected void releaseAllConnectionPools()
poolName - protected com.zaxxer.hikari.HikariDataSource getConnectionPool(String poolName)
protected com.zaxxer.hikari.HikariDataSource getDefaultConnectionPool()
protected void addSQLStatements(Properties sqlProperties)
protected Properties getMergedSqlProperties()
Copyright © 2011–2017 Knowm Inc.. All rights reserved.