Modifier and Type | Method and Description |
---|---|
RetryWhen.Builder |
action(io.reactivex.functions.Consumer<? super RetryWhen.ErrorAndDuration> action) |
io.reactivex.functions.Function<io.reactivex.Flowable<? extends Throwable>,io.reactivex.Flowable<Object>> |
build() |
RetryWhen.Builder |
delay(Long delay,
TimeUnit unit) |
RetryWhen.Builder |
delays(io.reactivex.Flowable<Long> delays,
TimeUnit unit) |
RetryWhen.Builder |
delaysInt(io.reactivex.Flowable<Integer> delays,
TimeUnit unit) |
RetryWhen.Builder |
exponentialBackoff(long firstDelay,
long maxDelay,
TimeUnit unit,
double factor) |
RetryWhen.Builder |
exponentialBackoff(long firstDelay,
TimeUnit unit) |
RetryWhen.Builder |
exponentialBackoff(long firstDelay,
TimeUnit unit,
double factor) |
RetryWhen.Builder |
failWhenInstanceOf(Class<? extends Throwable>... classes) |
RetryWhen.Builder |
maxRetries(int maxRetries) |
RetryWhen.Builder |
retryIf(io.reactivex.functions.Predicate<Throwable> predicate) |
RetryWhen.Builder |
retryWhenInstanceOf(Class<? extends Throwable>... classes) |
RetryWhen.Builder |
scheduler(io.reactivex.Scheduler scheduler) |
public RetryWhen.Builder retryWhenInstanceOf(Class<? extends Throwable>... classes)
public RetryWhen.Builder failWhenInstanceOf(Class<? extends Throwable>... classes)
public RetryWhen.Builder retryIf(io.reactivex.functions.Predicate<Throwable> predicate)
public RetryWhen.Builder delays(io.reactivex.Flowable<Long> delays, TimeUnit unit)
public RetryWhen.Builder delaysInt(io.reactivex.Flowable<Integer> delays, TimeUnit unit)
public RetryWhen.Builder delay(Long delay, TimeUnit unit)
public RetryWhen.Builder maxRetries(int maxRetries)
public RetryWhen.Builder scheduler(io.reactivex.Scheduler scheduler)
public RetryWhen.Builder action(io.reactivex.functions.Consumer<? super RetryWhen.ErrorAndDuration> action)
public RetryWhen.Builder exponentialBackoff(long firstDelay, long maxDelay, TimeUnit unit, double factor)
public RetryWhen.Builder exponentialBackoff(long firstDelay, TimeUnit unit, double factor)
public RetryWhen.Builder exponentialBackoff(long firstDelay, TimeUnit unit)
Copyright © 2013–2020. All rights reserved.