Package com.couchbase.client.java.view
Class ViewRetryHandler
- java.lang.Object
-
- com.couchbase.client.java.view.ViewRetryHandler
-
public class ViewRetryHandler extends Object
Generic View retry handler based on response code and value inspection.- Since:
- 2.0.2
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static rx.Observable<ViewQueryResponse>
retryOnCondition(rx.Observable<ViewQueryResponse> input)
Takes aViewQueryResponse
, verifies their status based on fixed criteria and resubscribes if needed.
-
-
-
Method Detail
-
retryOnCondition
public static rx.Observable<ViewQueryResponse> retryOnCondition(rx.Observable<ViewQueryResponse> input)
Takes aViewQueryResponse
, verifies their status based on fixed criteria and resubscribes if needed. If it needs to be retried, the resubscription will happen after 10 milliseconds to give the underlying code some time to recover.- Parameters:
input
- the original response.- Returns:
- the good response which can be parsed, or a failing observable.
-
-