public interface ConnectionService
Modifier and Type | Field and Description |
---|---|
static int |
INFO_NOT_AVAILABLE |
Modifier and Type | Method and Description |
---|---|
void |
freeConnection(Connection conn)
Release the connection
|
Connection |
getConnection()
Get a connection
|
int |
getCurrentConnections()
Gets the number of opened connections
|
DataSource |
getDataSource()
Get datasource
|
org.apache.log4j.Logger |
getLogger()
Gets the logger
|
int |
getMaxConnections()
Gets the max connections
|
String |
getPoolName()
Gets the pool name
|
String |
getPoolProvider()
Gets the pool manager provider
|
void |
init(Map<String,String> htParamsConnectionPool)
Initialize pool parameters
|
void |
release()
Free all connections
|
void |
setLogger(org.apache.log4j.Logger logger)
Define the logger
|
void |
setPoolName(String strPoolName)
Define the pool name
|
static final int INFO_NOT_AVAILABLE
Connection getConnection()
void freeConnection(Connection conn)
conn
- The connection to releasevoid release()
void init(Map<String,String> htParamsConnectionPool)
htParamsConnectionPool
- Parametersvoid setPoolName(String strPoolName)
strPoolName
- The pool nameString getPoolName()
void setLogger(org.apache.log4j.Logger logger)
logger
- The loggerorg.apache.log4j.Logger getLogger()
int getCurrentConnections()
int getMaxConnections()
String getPoolProvider()
DataSource getDataSource()
Copyright © 2020 City of Paris. All rights reserved.