public boolean retry(RequestException exception, int attemptNumber) throws Exception {
        boolean retry = attemptNumber <= max;
        LOG.debug("Retrying attempt=%d,max=%d,retry=%b,reason=%s", attemptNumber, max, retry, exception != null ? exception.getMessage() : "unknown");
        return retry;
    }
public boolean retry ( RequestException exception , int attemptNumber ) throws Exception { boolean retry = attemptNumber <= max ; LOG . debug ( "Retrying attempt=%d,max=%d,retry=%b,reason=%s" , attemptNumber , max , retry , exception != null ? exception . getMessage ( ) : "unknown" ) ; return retry ; }
@inheritDoc