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 amapping of errors to their attempt number
with a flatmap thatinduces a retry delay
into a function that can be passed to an Observable'sretryWhen 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description rx.Observable<?>
call(rx.Observable<? extends Throwable> errors)
-
-
-
Field Detail
-
handler
protected RetryWithDelayHandler handler
-
-
Constructor Detail
-
RetryWhenFunction
public RetryWhenFunction(RetryWithDelayHandler handler)
-
-