Modifier and Type | Method and Description |
---|---|
RetryWhen.Builder |
action(rx.functions.Action1<? super RetryWhen.ErrorAndDuration> action) |
rx.functions.Func1<rx.Observable<? extends Throwable>,rx.Observable<?>> |
build() |
RetryWhen.Builder |
delay(Long delay,
TimeUnit unit) |
RetryWhen.Builder |
delays(rx.Observable<Long> delays,
TimeUnit unit) |
RetryWhen.Builder |
delaysInt(rx.Observable<Integer> delays,
TimeUnit unit) |
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(rx.functions.Func1<Throwable,Boolean> predicate) |
RetryWhen.Builder |
retryWhenInstanceOf(Class<? extends Throwable>... classes) |
RetryWhen.Builder |
scheduler(rx.Scheduler scheduler) |
public RetryWhen.Builder retryWhenInstanceOf(Class<? extends Throwable>... classes)
public RetryWhen.Builder failWhenInstanceOf(Class<? extends Throwable>... classes)
public RetryWhen.Builder retryIf(rx.functions.Func1<Throwable,Boolean> predicate)
public RetryWhen.Builder delays(rx.Observable<Long> delays, TimeUnit unit)
public RetryWhen.Builder delaysInt(rx.Observable<Integer> delays, TimeUnit unit)
public RetryWhen.Builder delay(Long delay, TimeUnit unit)
public RetryWhen.Builder maxRetries(int maxRetries)
public RetryWhen.Builder scheduler(rx.Scheduler scheduler)
public RetryWhen.Builder action(rx.functions.Action1<? super RetryWhen.ErrorAndDuration> action)
public RetryWhen.Builder exponentialBackoff(long firstDelay, TimeUnit unit, double factor)
public RetryWhen.Builder exponentialBackoff(long firstDelay, TimeUnit unit)
public rx.functions.Func1<rx.Observable<? extends Throwable>,rx.Observable<?>> build()
Copyright © 2013–2016. All rights reserved.