public static <R> R retry(Callable<R> callable, int intervalTime, int maxTry, int delayTime) throws Exception {

        if (delayTime > 0) {
            LOG.info(String.format("-----延时%s秒执行", delayTime));
            Thread.sleep(delayTime);
        }
        return retry(callable, intervalTime, maxTry);
    }
public static < R > R retry ( Callable < R > callable , int intervalTime , int maxTry , int delayTime ) throws Exception { if ( delayTime > 0 ) { LOG . info ( String . format ( "-----延时%s秒执行" , delayTime ) ) ; Thread . sleep ( delayTime ) ; } return retry ( callable , intervalTime , maxTry ) ; }
@param callable     the callable
@param intervalTime 递增执行的间隔时间
@param maxTry       the max try
@param delayTime    延时执行
@param <R>          R
@return R
@throws Exception exception
@deprecated Do not support asynchronous task