public class ViewRetryHandler extends Object
Generic View retry handler based on response code and value inspection.
Constructor and Description |
---|
ViewRetryHandler() |
Modifier and Type | Method and Description |
---|---|
static Observable<com.couchbase.client.core.message.view.ViewQueryResponse> |
retryOnCondition(Observable<com.couchbase.client.core.message.view.ViewQueryResponse> input)
Takes a
ViewQueryResponse , verifies their status based on fixed criteria and resubscribes if needed. |
public static Observable<com.couchbase.client.core.message.view.ViewQueryResponse> retryOnCondition(Observable<com.couchbase.client.core.message.view.ViewQueryResponse> input)
Takes a ViewQueryResponse
, 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.
input
- the original response.Copyright © 2014 Couchbase, Inc.