Class Timer
java.lang.Object
|
+----java.lang.Thread
|
+----Timer
- class Timer
- extends Thread
-
notifiable
-
-
oneShot
-
-
time
-
-
Timer(Notifiable, int)
-
-
Timer(Notifiable, int, boolean)
-
-
run()
-
notifiable
private Notifiable notifiable
time
private int time
oneShot
private boolean oneShot
Timer
Timer(Notifiable notifiable,
int time)
Timer
Timer(Notifiable notifiable,
int time,
boolean oneShot)
- Parameters:
- notifiable - the Notifiable object to notify.
- time - the time in milliseconds.
- oneShot - a flag indicating if this timer should send only one
notification (
true
) or if it should continue to
send notifications until it is stopped (false
).
run
public void run()
- Overrides:
- run in class Thread