Class jif.util.CallbackTimer
All Packages Class Hierarchy This Package Previous Next Index
Class jif.util.CallbackTimer
java.lang.Object
|
+----java.lang.Thread
|
+----jif.util.CallbackTimer
- public class CallbackTimer
- extends Thread
CallbackTimer is a class that works in conjunction with the Timed
interface. When a class implements the Timed interface it is eligible
to be called back by an instance of this, the CallbackTimer, class.
This class extends Thread so it must be started, and can be suspended while
running.
- See Also:
- EventTimer
-
CallbackTimer(TimeOut, int)
- Constructs a CallbackTimer object.
-
run()
- Waits until the the specified period of time has elapsed and then
calls the tick() method of the target object.
CallbackTimer
public CallbackTimer(TimeOut target,
int interval)
- Constructs a CallbackTimer object.
- Parameters:
- target - The object that is requesting the timer
- interval - The number of milliseconds between notifications
run
public void run()
- Waits until the the specified period of time has elapsed and then
calls the tick() method of the target object.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index