danger.app
Class AlarmDispatcher

java.lang.Object
  extended by danger.app.AlarmDispatcher
All Implemented Interfaces:
Runnable


public class AlarmDispatcher
extends Object
implements Runnable

Application interface to alarm dispatchers.


Constructor Summary
AlarmDispatcher()
          Class constructor.
 
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
 

Constructor Detail

AlarmDispatcher

public AlarmDispatcher()
Class constructor. Constructs a new alarm dispatcher with one alarm node.

Method Detail

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