Package com.gooddata.sdk.service.retry
Class GetServerErrorRetryStrategy
java.lang.Object
com.gooddata.sdk.service.retry.GetServerErrorRetryStrategy
- All Implemented Interfaces:
RetryStrategy
Allows retry for GET method and some HTTP 5XX states mentioned in
RETRYABLE_STATES.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<String>static final Collection<Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanretryAllowed(String method, int statusCode, URI uri) Method says if retry is allowed for given parameter combination.
-
Field Details
-
RETRYABLE_STATES
-
RETRYABLE_METHODS
-
-
Constructor Details
-
GetServerErrorRetryStrategy
public GetServerErrorRetryStrategy()
-
-
Method Details
-
retryAllowed
Description copied from interface:RetryStrategyMethod says if retry is allowed for given parameter combination.- Specified by:
retryAllowedin interfaceRetryStrategy- Parameters:
method- HTTP methodstatusCode- HTTP response codeuri- requested URL- Returns:
trueit retry is allowed
-