Package com.mchange.v2.c3p0
Interface ConnectionTester
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
FullQueryConnectionTester,QueryConnectionTester,UnifiedConnectionTester
- All Known Implementing Classes:
AbstractConnectionTester,DefaultConnectionTester,IsValidOnlyConnectionTester,IsValidOnlyConnectionTester30
public interface ConnectionTester extends java.io.SerializableDefine your own Connection tester if you want to override c3p0's default behavior for testing the validity of Connections and responding to Connection errors encountered.
Recommended: If you'd like your ConnectionTester to support the user-configured
preferredTestQueryparameter, please implementUnifiedConnectionTester.ConnectionTesters should be Serializable, immutable, and must have public, no-arg constructors.
- See Also:
UnifiedConnectionTester,AbstractConnectionTester
-
-
Field Summary
Fields Modifier and Type Field Description static intCONNECTION_IS_INVALIDstatic intCONNECTION_IS_OKAYstatic intDATABASE_IS_INVALID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intactiveCheckConnection(java.sql.Connection c)intstatusOnException(java.sql.Connection c, java.lang.Throwable t)
-
-
-
Field Detail
-
CONNECTION_IS_OKAY
static final int CONNECTION_IS_OKAY
- See Also:
- Constant Field Values
-
CONNECTION_IS_INVALID
static final int CONNECTION_IS_INVALID
- See Also:
- Constant Field Values
-
DATABASE_IS_INVALID
static final int DATABASE_IS_INVALID
- See Also:
- Constant Field Values
-
-