public class FixedDelay extends Object implements DelayStrategy
DelayStrategy that implements a simple fixed delay.| Constructor and Description |
|---|
FixedDelay(int delay)
Initialize a new
FixedDelay with fixed delay value given by delay
parameter. |
FixedDelay(int initialDelay,
int subsequentDelay)
Initialize a new
FixedDelay with a given initialDelay and
subsequentDelay. |
public FixedDelay(int initialDelay,
int subsequentDelay)
FixedDelay with a given initialDelay and
subsequentDelay.initialDelay - value for the initial delaysubsequentDelay - value for all other delayspublic FixedDelay(int delay)
FixedDelay with fixed delay value given by delay
parameter.delay - value for all delayspublic int nextDelay()
DelayStrategy for the next delay.nextDelay in interface DelayStrategyCopyright © 2005-2014 QOS.ch. All Rights Reserved.