org.apache.droids.delay
Class RandomDelayTimer
java.lang.Object
org.apache.droids.delay.SimpleDelayTimer
org.apache.droids.delay.RandomDelayTimer
- All Implemented Interfaces:
- DelayTimer
- Direct Known Subclasses:
- GaussianRandomDelayTimer
public class RandomDelayTimer
- extends SimpleDelayTimer
- implements DelayTimer
Method Summary |
long |
getDelayMillis()
Returns the value of the delay between request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
random
protected Random random
RandomDelayTimer
public RandomDelayTimer()
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