Class 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 Detail

      • retryOnCondition

        public static rx.Observable<ViewQueryResponse> retryOnCondition​(rx.Observable<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.
        Parameters:
        input - the original response.
        Returns:
        the good response which can be parsed, or a failing observable.