public interface PoolingConnectionProvider extends ConnectionProvider
ConnectionProvider
s supporting pooling of connections.
Implementations must pool connections.
DBConnectionManager
,
ConnectionProvider
Modifier and Type | Field and Description |
---|---|
static String |
DB_DRIVER
The JDBC database driver.
|
static String |
DB_MAX_CONNECTIONS
The maximum number of database connections to have in the pool.
|
static String |
DB_PASSWORD
The database user password.
|
static String |
DB_URL
The JDBC database URL.
|
static String |
DB_USER
The database user name.
|
static String |
DB_VALIDATION_QUERY
The database sql query to execute every time a connection is returned
to the pool to ensure that it is still valid.
|
static int |
DEFAULT_DB_MAX_CONNECTIONS
Default maximum number of database connections in the pool.
|
static String |
POOLING_PROVIDER
The pooling provider.
|
static String |
POOLING_PROVIDER_C3P0
The c3p0 pooling provider.
|
static String |
POOLING_PROVIDER_HIKARICP
The Hikari pooling provider.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource() |
getConnection, initialize, shutdown
static final String POOLING_PROVIDER
static final String POOLING_PROVIDER_C3P0
static final String POOLING_PROVIDER_HIKARICP
static final String DB_DRIVER
static final String DB_URL
static final String DB_USER
static final String DB_PASSWORD
static final String DB_MAX_CONNECTIONS
static final String DB_VALIDATION_QUERY
static final int DEFAULT_DB_MAX_CONNECTIONS
DataSource getDataSource()
Copyright 2001-2019, Terracotta, Inc.