Package org.pentaho.di.ui.spoon.trans
Class DelayTimer
java.lang.Object
org.pentaho.di.ui.spoon.trans.DelayTimer
- All Implemented Interfaces:
Runnable
A timer where you can attach a timer to. Once the time is up, the listeners are fired off.
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionDelayTimer
(int delayInMiliseconds) DelayTimer
(int delayInMilliseconds, DelayListener delayListener) DelayTimer
(int delayInMilliseconds, DelayListener delayListener, Callable<Boolean> prolonger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelayListener
(DelayListener delayListener) int
void
reset()
void
run()
void
setDelayInSeconds
(int delayInMilliseconds) void
stop()
-
Constructor Details
-
DelayTimer
public DelayTimer(int delayInMiliseconds) -
DelayTimer
-
DelayTimer
public DelayTimer(int delayInMilliseconds, DelayListener delayListener, Callable<Boolean> prolonger)
-
-
Method Details
-
reset
public void reset() -
run
public void run() -
stop
public void stop() -
addDelayListener
-
getDelayInMilliseconds
public int getDelayInMilliseconds()- Returns:
- the delay in milliseconds
-
setDelayInSeconds
public void setDelayInSeconds(int delayInMilliseconds) - Parameters:
delayInMilliseconds
- the delay in milliseconds to set
-