Interface ConnectionPool
-
- All Known Implementing Classes:
C3P0ConnectionPool
,HikariConnectionPool
public interface ConnectionPool
A 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 void
close()
Connection
getConnection()
int
getMaxPoolSize()
int
getNumBusyConnectionsAllUsers()
int
getNumConnectionsAllUsers()
-
-
-
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
-
-