public class TimeTrigger
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
TimeTrigger(java.lang.String name,
ITriggerReceiver receiver,
long timeout) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
start()
Like with a thread you can only start this once.
|
void |
stop()
stops the thread with the next cycle
|
java.lang.String |
toString() |
public TimeTrigger(java.lang.String name, ITriggerReceiver receiver, long timeout)
receiver
- timeout
- the timeout in mspublic void stop()
public void run()
run
in interface java.lang.Runnable
public void start()
public java.lang.String toString()
toString
in class java.lang.Object