Interface ConnectionPool
-
- All Known Implementing Classes:
C3P0ConnectionPool,HikariConnectionPool
public interface ConnectionPoolA simple interface that must be implemented by ConnectionPool wrapper classes.- Author:
- Ryan Emerson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()ConnectiongetConnection()intgetMaxPoolSize()intgetNumBusyConnectionsAllUsers()intgetNumConnectionsAllUsers()
-
-
-
Method Detail
-
close
void close()
-
getConnection
Connection getConnection() throws SQLException
- Throws:
SQLException
-
getMaxPoolSize
int getMaxPoolSize()
-
getNumConnectionsAllUsers
int getNumConnectionsAllUsers() throws SQLException- Throws:
SQLException
-
getNumBusyConnectionsAllUsers
int getNumBusyConnectionsAllUsers() throws SQLException- Throws:
SQLException
-
-