public interface DelayPolicy<T>
| Modifier and Type | Field and Description |
|---|---|
static DelayPolicy<Object> |
DEFAULT |
static DelayPolicy<Object> |
INVALID |
static final DelayPolicy<Object> DEFAULT
static final DelayPolicy<Object> INVALID
Duration delay(RetryContext<? extends T> retryContext)
static <T> DelayPolicy<T> fixedInterval()
static <T> DelayPolicy<T> fixedInterval(Duration interval)
static <T> DelayPolicy<T> fixedInterval(long interval, TimeUnit timeUnit)
static <T> DelayPolicy<T> fixedInterval(long intervalMillis)
static <T> DelayPolicy<T> exponential(double multiplier)
static <T> DelayPolicy<T> exponential(Duration initialDelay, double multiplier)
static <T> DelayPolicy<T> exponential(long initialDelay, TimeUnit timeUnit, double multiplier)
static <T> DelayPolicy<T> exponential(long initialDelayMillis, double multiplier)
default DelayPolicy<T> withUniformJitter()
default DelayPolicy<T> withUniformJitter(long range)
default DelayPolicy<T> withUniformJitter(long range, TimeUnit timeUnit)
default DelayPolicy<T> withUniformJitter(Duration range)
default DelayPolicy<T> withProportionalJitter()
default DelayPolicy<T> withProportionalJitter(double multiplier)
default DelayPolicy<T> withMinDelay()
default DelayPolicy<T> withMinDelay(Duration minDelay)
default DelayPolicy<T> withMinDelay(long minDelay, TimeUnit timeUnit)
default DelayPolicy<T> withMinDelay(long minDelayMillis)
default DelayPolicy<T> withMaxDelay()
default DelayPolicy<T> withMaxDelay(Duration maxDelay)
default DelayPolicy<T> withMaxDelay(long maxDelay, TimeUnit timeUnit)
default DelayPolicy<T> withMaxDelay(long maxDelayMillis)
default DelayPolicy<T> withFirstRetryNoDelay()
default DelayPolicy<T> withOnFailureNoDelay()
default DelayPolicy<T> withOnSuccessNoDelay()
default <D extends DelayPolicy<T>> D withCusomizer(Function<? super DelayPolicy<T>,D> fn)
static boolean isValid(Duration d)
Copyright © 2021. All rights reserved.