DCT Lightfoot v3 API specification

java.util
Class Timer

java.lang.Object
  |
  +--java.util.Timer

public class Timer
extends Object

Implement a timer that is used to schedule timer tasks


Constructor Summary
Timer()
          Create a new timer
 
Method Summary
 void cancel()
          Cancel this timer task, causing any threads to stop
 void schedule(TimerTask task, Date date)
          Schedule a task to be run at a certain time
 void schedule(TimerTask task, Date date, long repeat)
          Schedule a task to be run at a certain time with a repeat rate
 void schedule(TimerTask task, long delay)
          Schedule a task to be run after a delay
 void schedule(TimerTask task, long delay, long repeat)
          Schedule a task to be run after a delay with a repeat rate
 void scheduleAtFixedRate(TimerTask task, Date date, long repeat)
          Schedule a task to be run at a certain time with a fixed repeat rate
 void scheduleAtFixedRate(TimerTask task, long delay, long repeat)
          Schedule a task to be run after a delay with a fixed repeat rate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Create a new timer

Method Detail

cancel

public void cancel()
Cancel this timer task, causing any threads to stop


schedule

public void schedule(TimerTask task,
                     Date date)
Schedule a task to be run at a certain time

Parameters:
task - The task
date - The date to run it at

schedule

public void schedule(TimerTask task,
                     Date date,
                     long repeat)
Schedule a task to be run at a certain time with a repeat rate

Parameters:
task - The task
date - The date to run it at
repeat - The repeat period

schedule

public void schedule(TimerTask task,
                     long delay)
Schedule a task to be run after a delay

Parameters:
task - The task
delay - The delay before running it

schedule

public void schedule(TimerTask task,
                     long delay,
                     long repeat)
Schedule a task to be run after a delay with a repeat rate

Parameters:
task - The task
delay - The delay before running it
repeat - The repeat period

scheduleAtFixedRate

public void scheduleAtFixedRate(TimerTask task,
                                Date date,
                                long repeat)
Schedule a task to be run at a certain time with a fixed repeat rate

Parameters:
task - The task
date - The date to run it at
repeat - The repeat period

scheduleAtFixedRate

public void scheduleAtFixedRate(TimerTask task,
                                long delay,
                                long repeat)
Schedule a task to be run after a delay with a fixed repeat rate

Parameters:
task - The task
delay - The delay before running it
repeat - The repeat period

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification