public class RetryExtensionsKt
@NotNull
public static <T> reactor.core.publisher.Flux<T> retryExponentialBackoff(@NotNull
reactor.core.publisher.Flux<T> $receiver,
long times,
@NotNull
java.time.Duration first,
@Nullable
java.time.Duration max,
boolean jitter,
@Nullable
kotlin.jvm.functions.Function1<? super reactor.retry.RetryContext<T>,kotlin.Unit> doOnRetry)
Extension to add a Flux.retry variant to Flux that uses an exponential backoff, as enabled by reactor-extra's Retry builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsjitter - optional flag to activate random jitter in the backoffsdoOnRetry - optional Consumer-like lambda that will receive a RetryContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Flux<T> retryRandomBackoff(@NotNull
reactor.core.publisher.Flux<T> $receiver,
long times,
@NotNull
java.time.Duration first,
@Nullable
java.time.Duration max,
@Nullable
kotlin.jvm.functions.Function1<? super reactor.retry.RetryContext<T>,kotlin.Unit> doOnRetry)
Extension to add a Flux.retry variant to Flux that uses a random backoff, as enabled by reactor-extra's Retry builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsdoOnRetry - optional Consumer-like lambda that will receive a RetryContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Mono<T> retryExponentialBackoff(@NotNull
reactor.core.publisher.Mono<T> $receiver,
long times,
@NotNull
java.time.Duration first,
@Nullable
java.time.Duration max,
boolean jitter,
@Nullable
kotlin.jvm.functions.Function1<? super reactor.retry.RetryContext<T>,kotlin.Unit> doOnRetry)
Extension to add a Mono.retry variant to Mono that uses an exponential backoff, as enabled by reactor-extra's Retry builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsjitter - optional flag to activate random jitter in the backoffsdoOnRetry - optional Consumer-like lambda that will receive a RetryContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Mono<T> retryRandomBackoff(@NotNull
reactor.core.publisher.Mono<T> $receiver,
long times,
@NotNull
java.time.Duration first,
@Nullable
java.time.Duration max,
@Nullable
kotlin.jvm.functions.Function1<? super reactor.retry.RetryContext<T>,kotlin.Unit> doOnRetry)
Extension to add a Mono.retry variant to Mono that uses a random backoff, as enabled by reactor-extra's Retry builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsdoOnRetry - optional Consumer-like lambda that will receive a RetryContexteach time an attempt is made.