Interface ConnectionTester
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FullQueryConnectionTester, QueryConnectionTester, UnifiedConnectionTester
- All Known Implementing Classes:
AbstractConnectionTester, DefaultConnectionTester, IsValidOnlyConnectionTester, IsValidOnlyConnectionTester30
Define 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 preferredTestQuery
parameter, please implement UnifiedConnectionTester.
ConnectionTesters should be Serializable, immutable, and must have public, no-arg constructors.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintint
-
Field Details
-
CONNECTION_IS_OKAY
static final int CONNECTION_IS_OKAY- See Also:
-
CONNECTION_IS_INVALID
static final int CONNECTION_IS_INVALID- See Also:
-
DATABASE_IS_INVALID
static final int DATABASE_IS_INVALID- See Also:
-
-
Method Details
-
activeCheckConnection
-
statusOnException
-