Class ConstantTimer

All Implemented Interfaces:
Serializable, Cloneable, LoopIterationListener, Searchable, org.apache.jmeter.testelement.TestElement, Timer
Direct Known Subclasses:
RandomTimer

public class ConstantTimer extends AbstractTestElement implements Timer, Serializable, LoopIterationListener
This class implements a constant timer with its own panel and fields for value update and user interaction.
See Also:
  • Field Details

  • Constructor Details

    • ConstantTimer

      public ConstantTimer()
      No-arg constructor.
  • Method Details

    • setDelay

      public void setDelay(String delay)
      Set the delay for this timer.
      Parameters:
      delay - The delay for this timer
    • setRange

      public void setRange(double range)
      Set the range (not used for this timer).
      Parameters:
      range - Not used
    • getDelay

      public String getDelay()
      Get the delay value for display.
      Returns:
      the delay value for display.
    • getRange

      public double getRange()
      Retrieve the range (not used for this timer).
      Returns:
      the range (always zero for this timer).
    • delay

      public long delay()
      Retrieve the delay to use during test execution.
      Specified by:
      delay in interface Timer
      Returns:
      the delay.
    • toString

      public String toString()
      Provide a description of this timer class.
      Overrides:
      toString in class Object
      Returns:
      the description of this timer class.
    • iterationStart

      public void iterationStart(LoopIterationEvent event)
      Gain access to any variables that have been defined.
      Specified by:
      iterationStart in interface LoopIterationListener
      Parameters:
      event - the event
      See Also: