Package org.hibernate.testing.jdbc.leak
Interface IdleConnectionCounter
- All Known Implementing Classes:
H2IdleConnectionCounter
,MySQLIdleConnectionCounter
,OracleIdleConnectionCounter
,PostgreSQLIdleConnectionCounter
public interface IdleConnectionCounter
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies which Dialect the counter applies to.int
count
(Connection connection) Count the number of idle connections.
-
Method Details
-
appliesTo
Specifies which Dialect the counter applies to.- Parameters:
dialect
- dialect- Returns:
- applicability.
-
count
Count the number of idle connections.- Parameters:
connection
- current JDBC connection to be used for querying the number of idle connections.- Returns:
- idle connection count.
-