Interface TimerContainerBuilder<T extends TestActionContainer,B extends TestActionContainerBuilder<T,B>>

All Superinterfaces:
TestActionBuilder<T>, TestActionContainerBuilder<T,B>

public interface TimerContainerBuilder<T extends TestActionContainer,B extends TestActionContainerBuilder<T,B>> extends TestActionContainerBuilder<T,B>
  • Method Details

    • delay

      TimerContainerBuilder<T,B> delay(long delay)
      Initial delay in milliseconds before first timer event should fire.
    • interval

      TimerContainerBuilder<T,B> interval(long interval)
      Interval in milliseconds between each timer. As soon as the interval has elapsed the next timer event is fired.
    • repeatCount

      TimerContainerBuilder<T,B> repeatCount(int repeatCount)
      The maximum number of times the timer event is fired. Once this maximum number has been reached the timer is stopped
    • fork

      TimerContainerBuilder<T,B> fork(boolean fork)
      Fork the timer so that other actions can run in parallel to the nested timer actions
    • autoStop

      TimerContainerBuilder<T,B> autoStop(boolean autoStop)
      Automatically stop the timer when test is finished.
    • id

      Set the timer's id. This is useful when referencing the timer from other test actions like stop-timer
      Parameters:
      timerId - a unique timer id within the test context
    • timerId

      TimerContainerBuilder<T,B> timerId(String timerId)
      Set the timer's id. This is useful when referencing the timer from other test actions like stop-timer
      Parameters:
      timerId - a unique timer id within the test context