| java.lang.Object | |
| ↳ | java.util.TimerTask |
The TimerTask class represents a task to run at a specified time. The task
may be run once or repeatedly.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
TimerTask.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Cancels the
TimerTask and removes it from the Timer's queue.
| |||||||||||
The task to run should be specified in the implementation of the
run()
method.
| |||||||||||
Returns the scheduled execution time.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Runnable
| |||||||||||
Cancels the TimerTask and removes it from the Timer's queue. Generally, it
returns false if the call did not prevent a TimerTask from running at
least once. Subsequent calls have no effect.
true if the call prevented a scheduled execution
from taking place, false otherwise.
The task to run should be specified in the implementation of the run()
method.
Returns the scheduled execution time. If the task execution is in progress it returns the execution time of the ongoing task. Tasks which have not yet run return an undefined value.