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) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, 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 © 2019. All rights reserved.