All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zendesk.maxwell.util.ConnectionPool Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.zendesk.maxwell.util;

import com.zendesk.maxwell.errors.DuplicateProcessException;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.NoSuchElementException;

public interface ConnectionPool {
	@FunctionalInterface
	public interface RetryableSQLFunction {
		void apply(T t) throws SQLException, NoSuchElementException, DuplicateProcessException;
	}

	Connection getConnection() throws SQLException;
	void release();

	void probe() throws SQLException;
	void withSQLRetry(int nTries, RetryableSQLFunction inner)
		throws SQLException, NoSuchElementException, DuplicateProcessException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy