| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectno.sintef.event.Concentrator
Event concentrator reduces overhead of many rapid events by collecting multiple events within a time window, firing only a single event once the time window elapses.
| Constructor Summary | |
Concentrator(int windowLength,
             java.lang.Runnable eventHandler)
Concentrator constructor.  | 
|
| Method Summary | |
 void | 
fireEvent()
If event is already queued, just return, otherwise start new thread and wait for specified time window before firing event.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Concentrator(int windowLength,
                    java.lang.Runnable eventHandler)
windowLength - length of time window used for collecting eventseventHandler - the event handler to activate once the time window has elapsed| Method Detail | 
public final void fireEvent()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||