PollingStrategy.RetryStrategypublic class MaxAttemptsRetryStrategy extends Object implements PollingStrategy.RetryStrategy
| Constructor | Description |
|---|---|
MaxAttemptsRetryStrategy(int defaultMaxAttempts) |
Constructs a new MaxAttemptsRetryStrategy with the given
default number of attempts
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
shouldRetry(PollingStrategyContext pollingStrategyContext) |
Default way of checking if polling should be retried
or fast failed
|
public MaxAttemptsRetryStrategy(int defaultMaxAttempts)
public boolean shouldRetry(PollingStrategyContext pollingStrategyContext)
shouldRetry in interface PollingStrategy.RetryStrategypollingStrategyContext - Provides the polling context required to make the retry decisionPollingStrategyContextCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.