Class FixedTimeDelayStrategy

  • All Implemented Interfaces:
    DelayStrategy

    public class FixedTimeDelayStrategy
    extends Object
    implements DelayStrategy
    Delay strategy that waits a constant amount of time between poll attempts.
    • Constructor Detail

      • FixedTimeDelayStrategy

        @ConstructorProperties("timeBetweenAttempsInMillis")
        public FixedTimeDelayStrategy​(long timeBetweenAttempsInMillis)
    • 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.