public class ExponentialRetry extends Object
| Constructor and Description |
|---|
ExponentialRetry(ExponentialRetry other) |
ExponentialRetry(int maxAttempts) |
ExponentialRetry(int maxAttempts,
double sleepBaseSecs,
double maxJitterSecs) |
| Modifier and Type | Method and Description |
|---|---|
reactor.util.retry.Retry |
retry(List<Class<? extends Throwable>> retriableErrorClasses,
Predicate<? super Throwable> filter)
Creates a retry mechanism with exponential backoff and jitter.
|
public ExponentialRetry(int maxAttempts)
public ExponentialRetry(int maxAttempts,
double sleepBaseSecs,
double maxJitterSecs)
public ExponentialRetry(ExponentialRetry other)
public reactor.util.retry.Retry retry(@Nullable
List<Class<? extends Throwable>> retriableErrorClasses,
@Nullable
Predicate<? super Throwable> filter)
retriableErrorClasses - A list of error classes that are considered retriable. If null,
the method does not retry.filter - A filter to use. Default is retrying retriable errors.Retry instanceCopyright © 2025. All rights reserved.