code: protected void startReconnectThread() {
          final String interfaceId = consumerConfig.getInterfaceId();
          // 启动线程池
          // 默认每隔10秒重连
          int reconnect = consumerConfig.getReconnectPeriod();
          if (reconnect > 0) {
              reconnect = Math.max(reconnect, 2000); // 最小2000
              reconThread = new ScheduledService("CLI-RC-" + interfaceId, ScheduledService.MODE_FIXEDDELAY, new
                  Runnable() {
                      @Override
                      public void run() {
                          try {
                              doReconnect();
                          } catch (Throwable e) {
                              LOGGER.errorWithApp(consumerConfig.getAppName(),
                                  "Exception when retry connect to provider", e);
                          }
                      }
                  }, reconnect, reconnect, TimeUnit.MILLISECONDS).start();
          }
      }
docs: 启动重连+心跳线程