Class H2IdleConnectionCounter

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • H2IdleConnectionCounter

        public H2IdleConnectionCounter()
    • Method Detail

      • appliesTo

        public boolean appliesTo​(java.lang.Class<? extends Dialect> dialect)
        Description copied from interface: IdleConnectionCounter
        Specifies which Dialect the counter applies to.
        Specified by:
        appliesTo in interface IdleConnectionCounter
        Parameters:
        dialect - dialect
        Returns:
        applicability.
      • count

        public int count​(java.sql.Connection connection)
        Description copied from interface: IdleConnectionCounter
        Count the number of idle connections.
        Specified by:
        count in interface IdleConnectionCounter
        Parameters:
        connection - current JDBC connection to be used for querying the number of idle connections.
        Returns:
        idle connection count.