@InterfaceStability.Experimental @InterfaceAudience.Public public class RetryWhenFunction extends Object implements Func1<Observable<? extends Throwable>,Observable<?>>
Combine a mapping of errors to their attempt number with a flatmap that induces a retry delay into a function that can be passed to an Observable’s retryWhen operation.
how to construct such a function in a fluent manner.| Modifier and Type | Field and Description |
|---|---|
protected RetryWithDelayHandler |
handler |
| Constructor and Description |
|---|
RetryWhenFunction(RetryWithDelayHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Observable<?> |
call(Observable<? extends Throwable> errors) |
protected RetryWithDelayHandler handler
public RetryWhenFunction(RetryWithDelayHandler handler)
public Observable<?> call(Observable<? extends Throwable> errors)
call in interface Func1<Observable<? extends Throwable>,Observable<?>>Copyright © 2015 Couchbase, Inc.