All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.Timer
java.lang.Object
|
+----JavaGroups.Timer
- public class Timer
- extends Object
- implements Runnable
Allows to register commands to be executed at a certain time, or in n milliseconds from now.
The command will be executed in a separate thread.
-
Timer()
- Constructor.
-
finalize()
-
-
main(String[])
-
-
run()
-
-
Start()
-
-
Stop()
-
-
Trigger(Command, Date)
- Call
command.Execute at time time.
-
Trigger(Command, long)
- Call
command.Execute in time milliseconds.
Timer
public Timer()
- Constructor. Starts the timer thread
finalize
public void finalize()
- Overrides:
- finalize in class Object
Trigger
public void Trigger(Command command,
long time)
- Call
command.Execute in time milliseconds. A command can be
registered multiple times, and will be called multiple times. Each command will be executed
on a separate thread.
Start
public void Start()
Stop
public void Stop()
Trigger
public void Trigger(Command command,
Date time)
- Call
command.Execute at time time. A command can be
registered multiple times, and will be called multiple times. Each command will be executed
on a separate thread. If the date is in the past, the command will be executed immediately.
run
public void run()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index