Class RetryWhenFunction
java.lang.Object
com.couchbase.client.java.util.retry.RetryWhenFunction
- All Implemented Interfaces:
rx.functions.Func1<rx.Observable<? extends Throwable>,rx.Observable<?>>
,rx.functions.Function
@Committed @Public public class RetryWhenFunction extends Object implements rx.functions.Func1<rx.Observable<? extends Throwable>,rx.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
.- Since:
- 2.1
- Author:
- Simon Baslé
- See Also:
how to construct such a function in a fluent manner.
-
Field Summary
Fields Modifier and Type Field Description protected RetryWithDelayHandler
handler
-
Constructor Summary
Constructors Constructor Description RetryWhenFunction(RetryWithDelayHandler handler)
-
Method Summary
-
Field Details
-
handler
-
-
Constructor Details
-
RetryWhenFunction
-
-
Method Details
-
call
- Specified by:
call
in interfacerx.functions.Func1<rx.Observable<? extends Throwable>,rx.Observable<?>>
-