01: // EventHandler.java
02: // $Id: EventHandler.java,v 1.2 1998/01/22 13:09:59 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.tools.timers;
07:
08: public interface EventHandler {
09: /** Handle an timer event. Data is the rock the register wanted
10: passed to the handleEvent routine, and time is the time the
11: event was scheduled to be delivered. The handler can compare
12: that time to the current time, if it wants, to see whether or
13: not it's falling behind. */
14: void handleTimerEvent(Object data, long time);
15: }
|