public interface ServiceRetryPolicy
ServiceClient to decide whether to retry requests.| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED |
| Modifier and Type | Method and Description |
|---|---|
long |
maxAttempts()
Returns the maximum number of desired attempts, or
UNLIMITED if unlimited. |
long |
maxWaitMillis()
Returns the maximum wait time between retries.
|
long |
minWaitMillis()
Returns the minimum wait time between retries.
|
boolean |
retryHttpResponse(org.jboss.netty.handler.codec.http.HttpResponse response)
Returns whether the given HTTP response can be retried.
|
boolean |
retryNotAvailable()
Returns whether service-not-available, i.e.
|
boolean |
retryThrowable(Throwable t)
Returns whether the given exception can be retried.
|
static final int UNLIMITED
long maxAttempts()
UNLIMITED if unlimited. A value of 1 means no retries.
Zero is invalid.long minWaitMillis()
long maxWaitMillis()
boolean retryHttpResponse(org.jboss.netty.handler.codec.http.HttpResponse response)
boolean retryThrowable(Throwable t)
boolean retryNotAvailable()
ServiceLocations.getLocations(), can be retried.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.