Package org.eclnt.ccee.db.dofw
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 TypeMethodDescriptionboolean
checkConnection
(Connection connection) Each connection is checked after it was picked from pool.
-
Method Details
-
checkConnection
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
-