Interface IDBConnectionPoolConnectionChecker

All Known Implementing Classes:
DBConnectionPoolDefaultConnectionChecker

public interface IDBConnectionPoolConnectionChecker
Interface to program checking the connection when it is picked from the pool. The interface is passed to the pool processing by calling method DBConnectionPool.initConnectionChecker(IDBConnectionPoolConnectionChecker).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Each connection is checked after it was picked from pool.
  • Method Details

    • checkConnection

      boolean checkConnection(Connection connection)
      Each connection is checked after it was picked from pool. The check need to test if this connection is still usable.
      Returns:
      true => connection is usable, false => connection is not usable