@Override
    public double getRetryDelay(int retry) {
        long retryMultiplier = 0l;
        if (retry > 1) {
            retryMultiplier = 1L << Math.min(20, retry-1);
        }

        return Math.min(10.0, (retryMultiplier*baseDelayUS.get())/US);
    }
Sets the base delay in seconds to wait between retries. This amount is multiplied by the retry number.

@param baseDelay The time in seconds.
@return This, to allow chaining.
messagebus/src/main/java/com/yahoo/messagebus/routing/RetryTransientErrorsPolicy.java