org.apache.droids.delay
Class RandomDelayTimer

Package class diagram package RandomDelayTimer
java.lang.Object
  extended by org.apache.droids.delay.SimpleDelayTimer
      extended by org.apache.droids.delay.RandomDelayTimer
All Implemented Interfaces:
DelayTimer
Direct Known Subclasses:
GaussianRandomDelayTimer

public class RandomDelayTimer
extends SimpleDelayTimer
implements DelayTimer


Field Summary
protected  Random random
           
 
Constructor Summary
RandomDelayTimer()
           
 
Method Summary
 long getDelayMillis()
          Returns the value of the delay between request.
 
Methods inherited from class org.apache.droids.delay.SimpleDelayTimer
getDelay, setDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected Random random
Constructor Detail

RandomDelayTimer

public RandomDelayTimer()
Method Detail

getDelayMillis

public long getDelayMillis()
Description copied from interface: DelayTimer
Returns the value of the delay between request.

Specified by:
getDelayMillis in interface DelayTimer
Overrides:
getDelayMillis in class SimpleDelayTimer
Returns:
the configured value of the delay


Copyright © 2008 The Apache Software Foundation