PollingStrategy.RetryStrategy
public 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.RetryStrategy
pollingStrategyContext
- Provides the polling context required to make the retry decisionPollingStrategyContext
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.