Class MaxTimeRetryStrategy

  • All Implemented Interfaces:
    com.amazonaws.waiters.PollingStrategy.RetryStrategy

    public class MaxTimeRetryStrategy
    extends Object
    implements com.amazonaws.waiters.PollingStrategy.RetryStrategy
    • Constructor Detail

      • 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 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 interface com.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