Java java.util Timer fields, constructors, methods, implement or subclass

Example usage for Java java.util Timer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util Timer.

The text is from its open source code.

Subclass

java.util.Timer has subclasses.
Click this link to see all its subclasses.

Implementation

java.util.Timer has the following implementations.
Click this link to see all its implementation.

Constructor

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 .

Method

voidcancel()
Terminates this timer, discarding any currently scheduled tasks.
intpurge()
Removes all cancelled tasks from this timer's task queue.
voidschedule(TimerTask task, long delay)
Schedules the specified task for execution after the specified delay.
voidschedule(TimerTask task, Date time)
Schedules the specified task for execution at the specified time.
voidschedule(TimerTask task, long delay, long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.
voidschedule(TimerTask task, Date firstTime, long period)
Schedules the specified task for repeated fixed-delay execution, beginning at the specified time.
voidscheduleAtFixedRate(TimerTask task, long delay, long period)
Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
voidscheduleAtFixedRate(TimerTask task, Date firstTime, long period)
Schedules the specified task for repeated fixed-rate execution, beginning at the specified time.