@InterfaceStability.Committed @InterfaceAudience.Public public class RetryWhenFunction extends Object implements rx.functions.Func1<rx.Observable<? extends Throwable>,rx.Observable<?>>
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 |
|---|---|
rx.Observable<?> |
call(rx.Observable<? extends Throwable> errors) |
protected RetryWithDelayHandler handler
public RetryWhenFunction(RetryWithDelayHandler handler)
Copyright © 2015 Couchbase, Inc.