public class XRateLimitServiceUnavailableRetryStrategy
extends org.apache.maven.wagon.shared.http.StandardServiceUnavailableRetryStrategy
ServiceUnavailableRetryStrategy interface.
that retries 408 (Request Timeout), 429 (Too Many Requests),
and 500 (Server side error) responses for a fixed number of times at
a interval returned in X-RateLimit-Reset or Retry-After header.
X-RateLimit-Reset have precedence over Retry-After.| Modifier and Type | Field and Description |
|---|---|
static String |
RETRY_AFTER_HEADER
The response HTTP header indicates how long the user agent should wait before making a follow-up request.
|
static String |
X_RATE_LIMIT_RESET_HEADER
The response HTTP header indicates how long the user agent should wait before making a follow-up request.
|
| Constructor and Description |
|---|
XRateLimitServiceUnavailableRetryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getRetryInterval() |
boolean |
retryRequest(org.apache.http.HttpResponse response,
int executionCount,
org.apache.http.protocol.HttpContext context) |
public static final String X_RATE_LIMIT_RESET_HEADER
public static final String RETRY_AFTER_HEADER
public XRateLimitServiceUnavailableRetryStrategy()
public boolean retryRequest(org.apache.http.HttpResponse response,
int executionCount,
org.apache.http.protocol.HttpContext context)
retryRequest in interface org.apache.http.client.ServiceUnavailableRetryStrategyretryRequest in class org.apache.maven.wagon.shared.http.StandardServiceUnavailableRetryStrategypublic long getRetryInterval()
getRetryInterval in interface org.apache.http.client.ServiceUnavailableRetryStrategygetRetryInterval in class org.apache.maven.wagon.shared.http.StandardServiceUnavailableRetryStrategyCopyright © 2018–2024 HERE Europe B.V.. All rights reserved.