Interface IdleConnectionCounter

All Known Implementing Classes:
H2IdleConnectionCounter, MySQLIdleConnectionCounter, OracleIdleConnectionCounter, PostgreSQLIdleConnectionCounter

public interface IdleConnectionCounter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    appliesTo(Class<? extends Dialect> dialect)
    Specifies which Dialect the counter applies to.
    int
    count(Connection connection)
    Count the number of idle connections.
  • Method Details

    • appliesTo

      boolean appliesTo(Class<? extends Dialect> dialect)
      Specifies which Dialect the counter applies to.
      Parameters:
      dialect - dialect
      Returns:
      applicability.
    • count

      int count(Connection connection)
      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.