Uses of Interface
com.couchbase.client.core.retry.reactor.Repeat
-
Uses of Repeat in com.couchbase.client.core.retry.reactor
Modifier and TypeMethodDescriptionReturns a repeat function with backoff delay.static <T> Repeat<T>
Repeat.create
(Predicate<? super RepeatContext<T>> predicate, long n) Repeat function that repeats n times, only if the predicate returns true.DefaultRepeat.doOnRepeat
(Consumer<? super RepeatContext<T>> onRepeat) Repeat.doOnRepeat
(Consumer<? super RepeatContext<T>> onRepeat) Returns a repeat function that invokes the provided onRepeat callback before every repeat.Repeat.exponentialBackoff
(Duration firstBackoff, Duration maxBackoff) Returns a repeat function with exponential backoff delay.Repeat.exponentialBackoffWithJitter
(Duration firstBackoff, Duration maxBackoff) Returns a repeat function with full jitter backoff strategy.Repeat.fixedBackoff
(Duration backoffInterval) Returns a repeat function with fixed backoff delay.Returns a repeat function that applies jitter to the backoff delay.Repeat.noBackoff()
Returns a repeat function with no backoff delay.static <T> Repeat<T>
Repeat.once()
Repeat function that repeats once.static <T> Repeat<T>
Repeat.onlyIf
(Predicate<? super RepeatContext<T>> predicate) Repeat function that repeats only if the predicate returns true.Repeat.randomBackoff
(Duration firstBackoff, Duration maxBackoff) Returns a repeat function with random de-correlated jitter backoff strategy.DefaultRepeat.repeatMax
(long maxRepeats) Repeat.repeatMax
(long maxRepeats) Returns a repeat function that repeats at most n times.Returns a repeat function with timeout.static <T> Repeat<T>
Repeat.times
(long n) Repeat function that repeats n times.DefaultRepeat.withApplicationContext
(T applicationContext) Repeat.withApplicationContext
(T applicationContext) Returns a repeat function with an application context that may be used to perform any rollbacks before a repeat.DefaultRepeat.withBackoffScheduler
(Scheduler scheduler) Repeat.withBackoffScheduler
(Scheduler scheduler) Returns a repeat function that uses the scheduler provided for backoff delays.