Class RequestRepeater


  • public class RequestRepeater
    extends Object
    Used to repeat HTTP requests for a certain number of times.
    • Constructor Detail

      • RequestRepeater

        public RequestRepeater​(long _max,
                               long _milli)

        Constructor for RequestRepeater.

        Parameters:
        _max - a long.
        _milli - a long.
    • Method Detail

      • repeat

        public boolean repeat​(boolean _503)
        Returns true (and waits waitMilli milliseconds) if the response code of the previous HTTP call was 503 and the number of maximum retries has not been reached, false otherwise.
        Parameters:
        _503 - a boolean.
        Returns:
        a boolean.