Class Timer.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • timer

        public static Timer.Builder timer()
        Fluent API action building entry method used in Java DSL.
        Returns:
      • delay

        public Timer.Builder delay​(long delay)
        Initial delay in milliseconds before first timer event should fire.
        Parameters:
        delay -
      • interval

        public Timer.Builder interval​(long interval)
        Interval in milliseconds between each timer. As soon as the interval has elapsed the next timer event is fired.
        Parameters:
        interval -
      • repeatCount

        public Timer.Builder repeatCount​(int repeatCount)
        The maximum number of times the timer event is fired. Once this maximum number has been reached the timer is stopped
        Parameters:
        repeatCount -
      • fork

        public Timer.Builder fork​(boolean fork)
        Fork the timer so that other actions can run in parallel to the nested timer actions
        Parameters:
        fork -
      • timerId

        public Timer.Builder 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