public interface ConnectionPool
Modifier and Type | Method and Description |
---|---|
void |
checkin(java.sql.Connection connection) |
void |
checkinandreset(java.sql.Connection connection) |
void |
freecurrentthreadconnections()
will free all connections for the current thread
|
java.sql.Connection |
getConnectionWithRetry()
this method tries for a defined period of time to get a database connection in the pool.
|
java.sql.Connection getConnectionWithRetry() throws java.sql.SQLException, java.lang.InterruptedException
java.sql.SQLException
java.lang.InterruptedException
void checkin(java.sql.Connection connection)
connection
- brought back the connection to the poolvoid checkinandreset(java.sql.Connection connection)
connection
- brought back to the connection pool and marked as error, will be recreated before next usagevoid freecurrentthreadconnections()