RetryCondition
public class MaxNumberOfRetriesCondition extends Object implements RetryCondition
Constructor | Description |
---|---|
MaxNumberOfRetriesCondition(int maxNumberOfRetries) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
shouldRetry(RetryPolicyContext context) |
Determine whether a request should or should not be retried.
|
public MaxNumberOfRetriesCondition(int maxNumberOfRetries)
public boolean shouldRetry(RetryPolicyContext context)
RetryCondition
shouldRetry
in interface RetryCondition
context
- Context about the state of the last request and information about the number of requests made.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.