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
Constructors Constructor Description MaxTimeRetryStrategy(long defaultMaxTime)
Constructs a new MaxTimeRetryStrategy with the given default length of time to keep retrying
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldRetry(com.amazonaws.waiters.PollingStrategyContext pollingStrategyContext)
Default way of checking if polling should be retried or fast failed
-
-
-
Method Detail
-
shouldRetry
public boolean shouldRetry(com.amazonaws.waiters.PollingStrategyContext pollingStrategyContext)
Default way of checking if polling should be retried or fast failed- Specified by:
shouldRetry
in 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
-
-