public class GetServerErrorRetryStrategy extends Object implements RetryStrategy
RETRYABLE_STATES.| Modifier and Type | Field and Description |
|---|---|
static Collection<String> |
RETRYABLE_METHODS |
static Collection<Integer> |
RETRYABLE_STATES |
| Constructor and Description |
|---|
GetServerErrorRetryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
retryAllowed(String method,
int statusCode,
URI uri)
Method says if retry is allowed for given parameter combination.
|
public static final Collection<Integer> RETRYABLE_STATES
public static final Collection<String> RETRYABLE_METHODS
public boolean retryAllowed(String method, int statusCode, URI uri)
RetryStrategyretryAllowed in interface RetryStrategymethod - HTTP methodstatusCode - HTTP response codeuri - requested URLtrue it retry is allowedCopyright © 2019. All rights reserved.