Class MaxTimeRetryStrategy
java.lang.Object
com.cloudbees.jenkins.plugins.amazonecs.aws.MaxTimeRetryStrategy
- All Implemented Interfaces:
com.amazonaws.waiters.PollingStrategy.RetryStrategy
public class MaxTimeRetryStrategy
extends Object
implements com.amazonaws.waiters.PollingStrategy.RetryStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionMaxTimeRetryStrategy(long defaultMaxTime) Constructs a new MaxTimeRetryStrategy with the given default length of time to keep retrying -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRetry(com.amazonaws.waiters.PollingStrategyContext pollingStrategyContext) Default way of checking if polling should be retried or fast failed
-
Constructor Details
-
MaxTimeRetryStrategy
public MaxTimeRetryStrategy(long defaultMaxTime) Constructs a new MaxTimeRetryStrategy with the given default length of time to keep retrying- Parameters:
defaultMaxTime- max time for retries
-
-
Method Details
-
shouldRetry
public boolean shouldRetry(com.amazonaws.waiters.PollingStrategyContext pollingStrategyContext) Default way of checking if polling should be retried or fast failed- Specified by:
shouldRetryin interfacecom.amazonaws.waiters.PollingStrategy.RetryStrategy- Parameters:
pollingStrategyContext- Provides the polling context required to make the retry decision- Returns:
- false if we're passed our allowed time
-