public interface IdleConnectionCounter
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(Class<? extends org.hibernate.dialect.Dialect> dialect)
Specifies which Dialect the counter applies to.
|
int |
count(Connection connection)
Count the number of idle connections.
|
boolean appliesTo(Class<? extends org.hibernate.dialect.Dialect> dialect)
dialect
- dialectint count(Connection connection)
connection
- current JDBC connection to be used for querying the number of idle connections.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.