src/main/java/software/amazon/qldb/DefaultQldbTransactionBackoffStrategy.java
@Override
    public Duration calculateDelay(RetryPolicyContext retryPolicyContext) {
        int cappedRetries = Math.min(retryPolicyContext.retriesAttempted(), RETRIES_ATTEMPTED_CEILING);
        int delay = (int) Math.min(baseDelay.multipliedBy(1L << cappedRetries).toMillis(), maxBackoffTime.toMillis());
        return Duration.ofMillis((delay / 2) + random.nextInt((delay / 2) + 1));
    }
/**
     * <p>Compute the delay before the next retry request.</p>
     *
     * <p>This strategy is only consulted when there will be a next retry.</p>
     *
     * @param retryPolicyContext Number of retries that will be attempted.
     * @return Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
     */
Compute the delay before the next retry request.
This strategy is only consulted when there will be a next retry.

@param retryPolicyContext Number of retries that will be attempted.
@return Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
Compute the delay before the next retry request . This strategy is only consulted when there will be a next retry . @param retryPolicyContext Number of retries that will be attempted . @return Amount of time in milliseconds to wait before the next attempt . Must be non - negative ( can be zero ) .
@Override
    public Duration calculateDelay(RetryPolicyContext retryPolicyContext) {
        int cappedRetries = Math.min(retryPolicyContext.retriesAttempted(), RETRIES_ATTEMPTED_CEILING);
        int delay = (int) Math.min(baseDelay.multipliedBy(1L << cappedRetries).toMillis(), maxBackoffTime.toMillis());
        return Duration.ofMillis((delay / 2) + random.nextInt((delay / 2) + 1));
    }
@ Override public Duration calculateDelay ( RetryPolicyContext retryPolicyContext ) { int cappedRetries = Math . min ( retryPolicyContext . retriesAttempted ( ) , RETRIES_ATTEMPTED_CEILING ) ; int delay = ( int ) Math . min ( baseDelay . multipliedBy ( 1L << cappedRetries ) . toMillis ( ) , maxBackoffTime . toMillis ( ) ) ; return Duration . ofMillis ( ( delay / 2 ) + random . nextInt ( ( delay / 2 ) + 1 ) ) ; }
<p>Compute the delay before the next retry request.</p>
 <p>This strategy is only consulted when there will be a next retry.</p>
<p > Compute the delay before the next retry request . < / p > <p > This strategy is only consulted when there will be a next retry . < / p >