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

net.ttddyy.dsproxy.ConnectionIdManager Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy