public class TimerDelayRunner extends java.lang.Object implements IDelayRunner
Modifier and Type | Field and Description |
---|---|
protected java.util.Timer |
timer
The java timer.
|
Constructor and Description |
---|
TimerDelayRunner() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the timer.
|
java.lang.Runnable |
waitForDelay(long delay,
java.lang.Runnable step)
Wait for a delay.
|
public java.lang.Runnable waitForDelay(long delay, java.lang.Runnable step)
waitForDelay
in interface IDelayRunner
delay
- The delay.step
- The step.public void cancel()
cancel
in interface IDelayRunner