public final class ExponentialDelayWithoutJitter extends Object implements BackoffStrategy
Specifically, the first attempt waits 0ms, and each subsequent attempt waits for
min(maxDelay, baseDelay * (1 << (attempt - 2))).
| Constructor and Description |
|---|
ExponentialDelayWithoutJitter(Duration baseDelay,
Duration maxDelay) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
computeDelay(int attempt)
Compute the amount of time to wait before the provided attempt number is executed.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexponentialDelay, exponentialDelayHalfJitter, exponentialDelayWithoutJitter, fixedDelay, fixedDelayWithoutJitter, retryImmediatelypublic Duration computeDelay(int attempt)
BackoffStrategycomputeDelay in interface BackoffStrategyattempt - The attempt to compute the delay for, starting at one.Copyright © 2026. All rights reserved.