Class RequestRepeater
- java.lang.Object
-
- org.eclipse.steady.backend.requests.RequestRepeater
-
public class RequestRepeater extends Object
Used to repeat HTTP requests for a certain number of times.
-
-
Constructor Summary
Constructors Constructor Description RequestRepeater(long _max, long _milli)Constructor for RequestRepeater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrepeat(boolean _503)Returns true (and waitswaitMillimilliseconds) if the response code of the previous HTTP call was 503 and the number of maximum retries has not been reached, false otherwise.
-
-
-
Method Detail
-
repeat
public boolean repeat(boolean _503)
Returns true (and waitswaitMillimilliseconds) 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.
-
-