Package com.zendesk.maxwell.util
Class C3P0ConnectionPool
- java.lang.Object
-
- com.zendesk.maxwell.util.C3P0ConnectionPool
-
- All Implemented Interfaces:
ConnectionPool
public class C3P0ConnectionPool extends Object implements ConnectionPool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.zendesk.maxwell.util.ConnectionPool
ConnectionPool.RetryableSQLFunction<T>
-
-
Constructor Summary
Constructors Constructor Description C3P0ConnectionPool(String url, String user, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection()voidprobe()voidrelease()voidwithSQLRetry(int nTries, ConnectionPool.RetryableSQLFunction<Connection> inner)
-
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceConnectionPool- Throws:
SQLException
-
release
public void release()
- Specified by:
releasein interfaceConnectionPool
-
probe
public void probe() throws SQLException- Specified by:
probein interfaceConnectionPool- Throws:
SQLException
-
withSQLRetry
public void withSQLRetry(int nTries, ConnectionPool.RetryableSQLFunction<Connection> inner) throws SQLException, DuplicateProcessException, NoSuchElementException- Specified by:
withSQLRetryin interfaceConnectionPool- Throws:
SQLExceptionDuplicateProcessExceptionNoSuchElementException
-
-