danger.app
Class AlarmDispatcher
java.lang.Object
danger.app.AlarmDispatcher
- All Implemented Interfaces:
- Runnable
public class AlarmDispatcher
- extends Object
- implements Runnable
Application interface to alarm dispatchers.
|
Method Summary |
void |
run()
Check alarms and dispatch events if required. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlarmDispatcher
public AlarmDispatcher()
- Class constructor.
Constructs a new alarm dispatcher with one alarm node.
run
public void run()
- Check alarms and dispatch events if required.
Look through the list of active alarms for any with a wake
time that has already passed. Generate alarm events for
these alarms and send them to the associated listeners.
- Specified by:
run in interface Runnable