public void resetErrorCount() {
        errorCount.set(0);
        if (!stat.get() && init.get() && errorCount.intValue() < maxInvokeError && stat.compareAndSet(false, true)) {
            logger.info("NettyClient recover available: interfaceName='" + config.getInterfaceName() + "' '" + config.identity() + "'");
        }
    }
public void resetErrorCount() {
        errorCount.set(0);
        if (!stat.get() && init.get() && errorCount.intValue() < maxInvokeError && stat.compareAndSet(false, true)) {
            logger.info("NettyClient recover available: interfaceName='" + config.getInterfaceName() + "' '" + config.identity() + "'");
        }
    }
public void resetErrorCount ( ) { errorCount . set ( 0 ) ; if ( ! stat . get ( ) && init . get ( ) && errorCount . intValue ( ) < maxInvokeError && stat . compareAndSet ( false , true ) ) { logger . info ( "NettyClient recover available: interfaceName='" + config . getInterfaceName ( ) + "' '" + config . identity ( ) + "'" ) ; } }
通过心跳机制检测如果client恢复，则重新启用client
通过心跳机制检测如果client恢复，则重新启用client