Apache JMeter
1.9

org.apache.jmeter.timers
Interface Timer

All Superinterfaces:
Serializable
All Known Implementing Classes:
ConstantThroughputTimer, ConstantTimer, RandomTimer

public interface Timer
extends Serializable

This interface defines those methods that must be implemented by timer plugins.

Version:
$Id: Timer.java,v 1.3 2003/06/28 19:35:40 jeremy_a Exp $
Author:
Stefano Mazzocchi, Scott Eade

Method Summary
 long delay()
          This method is called after a sampling process is done to know how much time the sampling thread has to wait until sampling again.
 String getDelay()
          Get the delay value for display.
 double getRange()
          Get the range value.
 void setDelay(String delay)
          Set the delay value.
 void setRange(double range)
          Set the range value.
 

Method Detail

delay

public long delay()
This method is called after a sampling process is done to know how much time the sampling thread has to wait until sampling again.

Returns:
the computed delay value.

setRange

public void setRange(double range)
Set the range value.

Parameters:
range -

getRange

public double getRange()
Get the range value.

Returns:
double

setDelay

public void setDelay(String delay)
Set the delay value.

Parameters:
delay - the delay value (this is a String as it can be set using a variable).

getDelay

public String getDelay()
Get the delay value for display.

Returns:
String

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.