eteg.sinon.executor
Interface ThinkTime

All Known Implementing Classes:
ConstantThinkTime

public interface ThinkTime

Instances of this interface implement the think time (time between requests to the same website). They are configured through the use of <property name="" value=""> tags inside the <thinkTime> tag.

Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $

Method Summary
 long nextThinkTime()
          Returns the think time, in milliseconds, between the last request made and the next one.
 void setConfiguration(java.util.Properties properties)
          Configures this ThinkTime object.
 

Method Detail

nextThinkTime

long nextThinkTime()
Returns the think time, in milliseconds, between the last request made and the next one.

Returns:
a long.

setConfiguration

void setConfiguration(java.util.Properties properties)
                      throws InvalidThinkTimeConfigurationException
Configures this ThinkTime object. This method is always invoked before nextThinkTime() is first invoked.

Parameters:
properties - a Properties instance.
Throws:
InvalidThinkTimeConfigurationException - if the given configuration is not valid.


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.