Package com.zendesk.maxwell.util
Interface ConnectionPool
-
- All Known Implementing Classes:
C3P0ConnectionPool
public interface ConnectionPool
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConnectionPool.RetryableSQLFunction<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
getConnection()
void
probe()
void
release()
void
withSQLRetry(int nTries, ConnectionPool.RetryableSQLFunction<Connection> inner)
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws SQLException
- Throws:
SQLException
-
release
void release()
-
probe
void probe() throws SQLException
- Throws:
SQLException
-
withSQLRetry
void withSQLRetry(int nTries, ConnectionPool.RetryableSQLFunction<Connection> inner) throws SQLException, NoSuchElementException, DuplicateProcessException
-
-