org.apache.droids.delay
Class SimpleDelayTimer
java.lang.Object
org.apache.droids.delay.SimpleDelayTimer
- All Implemented Interfaces:
- DelayTimer
- Direct Known Subclasses:
- RandomDelayTimer
public class SimpleDelayTimer
- extends Object
- implements DelayTimer
Method Summary |
long |
getDelay()
Returns the delay time. |
long |
getDelayMillis()
Returns the value of the delay between request. |
void |
setDelay(long delay)
Sets the delay time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDelayTimer
public SimpleDelayTimer()
getDelayMillis
public long getDelayMillis()
- Description copied from interface:
DelayTimer
- Returns the value of the delay between request.
- Specified by:
getDelayMillis
in interface DelayTimer
- Returns:
- the configured value of the delay
getDelay
public long getDelay()
- Returns the delay time.
- Returns:
- long
setDelay
public void setDelay(long delay)
- Sets the delay time.
- Parameters:
delay
- long
Copyright © 2008 The Apache Software Foundation