|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||
Uses of Class
java.util.TimerTask
| Uses of TimerTask in java.util |
| Fields in java.util declared as TimerTask | |
private TimerTask[] |
Timer.TaskQueue.heap
The heap containing all the scheduled TimerTasks sorted by the TimerTask.scheduled field. |
| Methods in java.util that return TimerTask | |
private TimerTask |
Timer.TaskQueue.top()
Returns the top element of the queue. |
TimerTask |
Timer.TaskQueue.serve()
Returns the top task in the Queue. |
| Methods in java.util with parameters of type TimerTask | |
private void |
Timer.schedule(TimerTask task,
long time,
long period,
boolean fixed)
Schedules the task at Time time, repeating every period milliseconds if period is positive and at a fixed rate if fixed is true. |
void |
Timer.schedule(TimerTask task,
Date date)
Schedules the task at the specified data for one time execution. |
void |
Timer.schedule(TimerTask task,
Date date,
long period)
Schedules the task at the specified date and reschedules the task every period milliseconds after the last execution of the task finishes until this timer or the task is canceled. |
void |
Timer.schedule(TimerTask task,
long delay)
Schedules the task after the specified delay milliseconds for one time execution. |
void |
Timer.schedule(TimerTask task,
long delay,
long period)
Schedules the task after the delay milliseconds and reschedules the task every period milliseconds after the last execution of the task finishes until this timer or the task is canceled. |
void |
Timer.scheduleAtFixedRate(TimerTask task,
Date date,
long period)
Schedules the task at the specified date and reschedules the task at a fixed rate every period milliseconds until this timer or the task is canceled. |
void |
Timer.scheduleAtFixedRate(TimerTask task,
long delay,
long period)
Schedules the task after the delay milliseconds and reschedules the task at a fixed rate every period milliseconds until this timer or the task is canceled. |
private void |
Timer.TaskQueue.add(TimerTask task)
Adds a TimerTask at the end of the heap. |
void |
Timer.TaskQueue.enqueue(TimerTask task)
Adds a task to the queue and puts it at the correct place in the heap. |
|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||