org.apache.droids.delay
Class SimpleDelayTimer

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

public class SimpleDelayTimer
extends Object
implements DelayTimer


Constructor Summary
SimpleDelayTimer()
           
 
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
 

Constructor Detail

SimpleDelayTimer

public SimpleDelayTimer()
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
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