Class StandardServiceUnavailableRetryStrategy
- java.lang.Object
-
- org.apache.maven.wagon.shared.http.StandardServiceUnavailableRetryStrategy
-
- All Implemented Interfaces:
org.apache.http.client.ServiceUnavailableRetryStrategy
@Contract(threading=IMMUTABLE) public class StandardServiceUnavailableRetryStrategy extends java.lang.Object implements org.apache.http.client.ServiceUnavailableRetryStrategy
An implementation of theServiceUnavailableRetryStrategy
interface. that retries408
(Request Timeout),429
(Too Many Requests), and500
(Server side error) responses for a fixed number of times at a fixed interval.
-
-
Constructor Summary
Constructors Constructor Description StandardServiceUnavailableRetryStrategy(int maxRetries, int retryInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRetryInterval()
boolean
retryRequest(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.HttpContext context)
-
-
-
Method Detail
-
retryRequest
public boolean retryRequest(org.apache.http.HttpResponse response, int executionCount, org.apache.http.protocol.HttpContext context)
- Specified by:
retryRequest
in interfaceorg.apache.http.client.ServiceUnavailableRetryStrategy
-
getRetryInterval
public long getRetryInterval()
- Specified by:
getRetryInterval
in interfaceorg.apache.http.client.ServiceUnavailableRetryStrategy
-
-