Package jadex.commons.collection
Class TimerDelayRunner
- java.lang.Object
-
- jadex.commons.collection.TimerDelayRunner
-
- All Implemented Interfaces:
IDelayRunner
public class TimerDelayRunner extends java.lang.Object implements IDelayRunner
Timer based on Java java timer.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Timer
timer
The java timer.
-
Constructor Summary
Constructors Constructor Description TimerDelayRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel the timer.java.lang.Runnable
waitForDelay(long delay, java.lang.Runnable step)
Wait for a delay.
-
-
-
Method Detail
-
waitForDelay
public java.lang.Runnable waitForDelay(long delay, java.lang.Runnable step)
Wait for a delay.- Specified by:
waitForDelay
in interfaceIDelayRunner
- Parameters:
delay
- The delay.step
- The step.
-
cancel
public void cancel()
Cancel the timer.- Specified by:
cancel
in interfaceIDelayRunner
-
-