Interface IdleConnectionCounter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean appliesTo​(java.lang.Class<? extends Dialect> dialect)
      Specifies which Dialect the counter applies to.
      int count​(java.sql.Connection connection)
      Count the number of idle connections.
    • Method Detail

      • appliesTo

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

        int count​(java.sql.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.