public class FixedDelay extends Objectimplements 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(long initialDelay, long subsequentDelay)
Initialize a new
FixedDelay with a given
initialDelay and
subsequentDelay.
|
public FixedDelay(long initialDelay,
long subsequentDelay)
FixedDelay with a given
initialDelay and
subsequentDelay.
initialDelay - value for the initial delay
subsequentDelay - value for all other delays
public FixedDelay(int delay)
FixedDelay with fixed delay value given by
delay parameter.
delay - value for all delays
public long nextDelay()
DelayStrategy for the next delay.
nextDelay in interface
DelayStrategy