Interface ResourcesEndpointRetryPolicy
-
@SdkProtectedApi public interface ResourcesEndpointRetryPolicy
Custom retry policy that retrieve information from a local endpoint in EC2 host. Internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description static ResourcesEndpointRetryPolicyNO_RETRY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldRetry(int retriesAttempted, ResourcesEndpointRetryParameters retryParams)Returns whether a failed request should be retried.
-
-
-
Field Detail
-
NO_RETRY
static final ResourcesEndpointRetryPolicy NO_RETRY
-
-
Method Detail
-
shouldRetry
boolean shouldRetry(int retriesAttempted, ResourcesEndpointRetryParameters retryParams)Returns whether a failed request should be retried.- Parameters:
retriesAttempted- The number of times the current request has been attempted.- Returns:
- True if the failed request should be retried.
-
-