Example usage for Java java.util Timer fields, constructors, methods, implement or subclass
The text is from its open source code.
Timer() Creates a new timer. | |
Timer(boolean isDaemon) Creates a new timer whose associated thread may be specified to Thread#setDaemon run as a daemon . | |
Timer(String name) Creates a new timer whose associated thread has the specified name. | |
Timer(String name, boolean isDaemon) Creates a new timer whose associated thread has the specified name, and may be specified to Thread#setDaemon run as a daemon . |
void | cancel() Terminates this timer, discarding any currently scheduled tasks. |
int | purge() Removes all cancelled tasks from this timer's task queue. |
void | schedule(TimerTask task, long delay) Schedules the specified task for execution after the specified delay. |
void | schedule(TimerTask task, Date time) Schedules the specified task for execution at the specified time. |
void | schedule(TimerTask task, long delay, long period) Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay. |
void | schedule(TimerTask task, Date firstTime, long period) Schedules the specified task for repeated fixed-delay execution, beginning at the specified time. |
void | scheduleAtFixedRate(TimerTask task, long delay, long period) Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay. |
void | scheduleAtFixedRate(TimerTask task, Date firstTime, long period) Schedules the specified task for repeated fixed-rate execution, beginning at the specified time. |