Class CappedExponential

java.lang.Object
software.amazon.cloudformation.proxy.delay.CappedExponential
All Implemented Interfaces:
Delay

public class CappedExponential extends Object
  • Method Details

    • of

      public static CappedExponential.Builder of()
    • nextDelay

      public Duration nextDelay(int attempt)
      Calculating accrued time as summation of all the delay based on attempt. Assumption:- attempt will not be big number.
      Parameters:
      attempt - , starts with 1
      Returns:
      the next amount to wait for or Duration.ZERO to indicate delay is complete
    • toString

      public String toString()
      Overrides:
      toString in class Object