类 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

        public MysqlConnectionTester()
    • 方法详细资料

      • 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