Class ExponentialBackoffDelayStrategy

    • Constructor Detail

      • ExponentialBackoffDelayStrategy

        @ConstructorProperties("maxDelayInMillis")
        public ExponentialBackoffDelayStrategy​(long maxDelayInMillis)
    • Method Detail

      • nextDelay

        public long nextDelay​(WaiterConfiguration.WaitContext context)
        Description copied from interface: DelayStrategy
        Returns the amount of time to wait (in millis) before making another poll attempt.
        Specified by:
        nextDelay in interface DelayStrategy
        Parameters:
        context - The context after the last attempt.
        Returns:
        The amount of time to wait, in millis.