code: public static <Return> Return retryUntilNoException(Callable<Return> callable, int maxTry) throws Throwable {
          String errMsg = "连续重试失败" + maxTry + "次。";
          Throwable cause = null;
          while (maxTry > 0) {
              try {
                  return callable.call();
              } catch (Throwable throwable) {
                  cause = throwable;
                  maxTry--;
              }
          }
          LOG.error(new Throwable(errMsg, cause));
          throw cause;
      }
docs: 重试直到无异常抛出或者超过最大重试次数