public final class FixedDelayBackoffStrategy extends Object implements BackoffStrategy
Modifier and Type | Method and Description |
---|---|
Duration |
computeDelayBeforeNextRetry(RetryPolicyContext context)
Compute the delay before the next retry request.
|
static FixedDelayBackoffStrategy |
create(Duration fixedBackoff) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateExponentialDelay, defaultStrategy, defaultThrottlingStrategy, none
public Duration computeDelayBeforeNextRetry(RetryPolicyContext context)
BackoffStrategy
computeDelayBeforeNextRetry
in interface BackoffStrategy
context
- Context about the state of the last request and information about the number of requests made.public static FixedDelayBackoffStrategy create(Duration fixedBackoff)
Copyright © 2018. All rights reserved.