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 com..
ConnectionTesters should be Serializable, immutable, and must have public, no-arg constructors.
com.mchange.v2.c3p0.UnifiedConnectionTester , com.mchange.v2.c3p0.AbstractConnectionTester
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int |
| CONNECTION_IS_INVALID | back to summary |
|---|---|
| public static final int CONNECTION_IS_INVALID | |
| CONNECTION_IS_OKAY | back to summary |
|---|---|
| public static final int CONNECTION_IS_OKAY | |
| DATABASE_IS_INVALID | back to summary |
|---|---|
| public static final int DATABASE_IS_INVALID | |
| activeCheckConnection | back to summary |
|---|---|
| public int activeCheckConnection(Connection c) | |
| statusOnException | back to summary |
|---|---|
| public int statusOnException(Connection c, Throwable t) | |