net.ttddyy.dsproxy.ConnectionIdManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-proxy Show documentation
Show all versions of datasource-proxy Show documentation
Provide a datasource proxy that can inject your own logic into all queries.
package net.ttddyy.dsproxy;
import java.sql.Connection;
import java.util.Set;
/**
* @author Tadaya Tsuyukubo
* @since 1.4.2
*/
public interface ConnectionIdManager {
String getId(Connection connection);
/**
* Notify this manager that id of corresponding connection has addClosedId.
*
* @param closedId addClosedId connection id
* @since 1.4.5
*/
void addClosedId(String closedId);
/**
* Return set of connection ids that have not yet addClosedId.
*
* @return set of open connection ids
* @since 1.4.5
*/
Set getOpenConnectionIds();
}