public class RepeatExtensionsKt
@NotNull
public static <T> reactor.core.publisher.Flux<T> repeatExponentialBackoff(@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.RepeatContext<T>,kotlin.Unit> doOnRepeat)
Extension to add a Flux.repeat variant to Flux that uses an exponential backoff, as enabled by reactor-extra's Repeat 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 backoffsdoOnRepeat - optional Consumer-like lambda that will receive a RepeatContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Flux<T> repeatRandomBackoff(@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.RepeatContext<T>,kotlin.Unit> doOnRepeat)
Extension to add a Flux.repeat variant to Flux that uses a randomized backoff, as enabled by reactor-extra's Repeat builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsdoOnRepeat - optional Consumer-like lambda that will receive a RepeatContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Flux<T> repeatExponentialBackoff(@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.RepeatContext<T>,kotlin.Unit> doOnRepeat)
Extension to add a Mono.repeat variant to Mono that uses an exponential backoff, as enabled by reactor-extra's Repeat 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 backoffsdoOnRepeat - optional Consumer-like lambda that will receive a RepeatContexteach time an attempt is made.@NotNull
public static <T> reactor.core.publisher.Flux<T> repeatRandomBackoff(@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.RepeatContext<T>,kotlin.Unit> doOnRepeat)
Extension to add a Mono.repeat variant to Mono that uses a randomized backoff, as enabled by reactor-extra's Repeat builder.
times - the maximum number of retry attemptsfirst - the initial delay in retryingmax - the optional upper limit the delay can reach after subsequent backoffsdoOnRepeat - optional Consumer-like lambda that will receive a RepeatContexteach time an attempt is made.