org.pentaho.di.ui.spoon.trans
Class DelayTimer
java.lang.Object
org.pentaho.di.ui.spoon.trans.DelayTimer
- All Implemented Interfaces:
- Runnable
public class DelayTimer
- extends Object
- implements Runnable
A timer where you can attach a timer to.
Once the time is up, the listeners are fired off.
- Author:
- matt
DelayTimer
public DelayTimer(int delayInMiliseconds)
DelayTimer
public DelayTimer(int delayInMilliseconds,
DelayListener delayListener)
reset
public void reset()
run
public void run()
- Specified by:
run
in interface Runnable
stop
public void stop()
addDelayListener
public void addDelayListener(DelayListener delayListener)
getDelayInMilliseconds
public int getDelayInMilliseconds()
- Returns:
- the delay in milliseconds
setDelayInSeconds
public void setDelayInSeconds(int delayInMilliseconds)
- Parameters:
delayInMilliseconds
- the delay in milliseconds to set