
com.zendesk.maxwell.util.ConnectionPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maxwell Show documentation
Show all versions of maxwell Show documentation
Maxwell's daemon. Watches mysql, outputs to JSON.
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