类 MysqlConnectionTester
- java.lang.Object
-
- com.mysql.cj.jdbc.integration.c3p0.MysqlConnectionTester
-
- 所有已实现的接口:
com.mchange.v2.c3p0.ConnectionTester,com.mchange.v2.c3p0.QueryConnectionTester,Serializable
public final class MysqlConnectionTester extends Object implements com.mchange.v2.c3p0.QueryConnectionTester
ConnectionTester for C3P0 connection pool that uses the more efficient COM_PING method of testing connection 'liveness' for MySQL, and 'sorts' exceptions based on SQLState or class of 'CommunicationsException' for handling exceptions.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 MysqlConnectionTester()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intactiveCheckConnection(Connection con)intactiveCheckConnection(Connection arg0, String arg1)intstatusOnException(Connection arg0, Throwable throwable)
-
-
-
方法详细资料
-
activeCheckConnection
public int activeCheckConnection(Connection con)
- 指定者:
activeCheckConnection在接口中com.mchange.v2.c3p0.ConnectionTester
-
statusOnException
public int statusOnException(Connection arg0, Throwable throwable)
- 指定者:
statusOnException在接口中com.mchange.v2.c3p0.ConnectionTester
-
activeCheckConnection
public int activeCheckConnection(Connection arg0, String arg1)
- 指定者:
activeCheckConnection在接口中com.mchange.v2.c3p0.QueryConnectionTester
-
-