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

    Modifier and Type
    Method
    Description
    boolean
    shouldRetry(com.amazonaws.waiters.PollingStrategyContext pollingStrategyContext)
    Default way of checking if polling should be retried or fast failed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      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