类 NdbLoadBalanceExceptionChecker

    • 构造器详细资料

      • NdbLoadBalanceExceptionChecker

        public NdbLoadBalanceExceptionChecker()
    • 方法详细资料

      • shouldExceptionTriggerFailover

        public boolean shouldExceptionTriggerFailover​(Throwable ex)
        从接口复制的说明: LoadBalanceExceptionChecker
        Invoked to determine whether or a given SQLException should trigger a failover in a load-balanced deployment. The driver will not pass in a Connection instance when calling init(), but it will pass in the Properties, otherwise it acts like a normal Extension. One instance of a handler *per* JDBC connection instance will be created. If you need singleton-like behavior, you're on your own to provide it.
        指定者:
        shouldExceptionTriggerFailover 在接口中 LoadBalanceExceptionChecker
        覆盖:
        shouldExceptionTriggerFailover 在类中 StandardLoadBalanceExceptionChecker
        参数:
        ex - exception
        返回:
        true if the exception should trigger failover.