public class MySQLIdleConnectionCounter extends Object implements IdleConnectionCounter
| Modifier and Type | Field and Description |
|---|---|
static IdleConnectionCounter |
INSTANCE |
| Constructor and Description |
|---|
MySQLIdleConnectionCounter() |
| 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.
|
public static final IdleConnectionCounter INSTANCE
public boolean appliesTo(Class<? extends org.hibernate.dialect.Dialect> dialect)
IdleConnectionCounterappliesTo in interface IdleConnectionCounterdialect - dialectpublic int count(Connection connection)
IdleConnectionCountercount in interface IdleConnectionCounterconnection - current JDBC connection to be used for querying the number of idle connections.Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.