public class MaxAttemptsRetryStrategy extends Object implements PollingStrategy.RetryStrategy
Constructor and Description |
---|
MaxAttemptsRetryStrategy(int defaultMaxAttempts)
Constructs a new MaxAttemptsRetryStrategy with the given
default number of attempts
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldRetry(PollingStrategyContext pollingStrategyContext)
Default way of checking if polling should be retried
or fast failed
|
public MaxAttemptsRetryStrategy(int defaultMaxAttempts)
defaultMaxAttempts
- public boolean shouldRetry(PollingStrategyContext pollingStrategyContext)
shouldRetry
in interface PollingStrategy.RetryStrategy
pollingStrategyContext
- Provides the polling context required to make the retry decisionPollingStrategyContext
Copyright © 2022. All rights reserved.