Top Description Methods
org.apache.derby.iapi.services.timer

public Interface TimerFactory

Known Direct Implementers
org.apache.derby.impl.services.timer.SingletonTimerFactory
Imports
java.util.TimerTask

This class provides access to Timer objects for various purposes. The scheme for creation of Timer objects is implementation-defined.

Method Summary

Modifier and TypeMethod and Description
public void
cancel(TimerTask
the task to cancel
task
)

Cancel a task.

public void
schedule(TimerTask
the task to schedule
task
,
long
how many milliseconds to wait before executing the task
delay
)

Schedule a task.

Method Detail

cancelback to summary
public void cancel(TimerTask task)

Cancel a task.

Parameters
task:TimerTask

the task to cancel

scheduleback to summary
public void schedule(TimerTask task, long delay)

Schedule a task.

Parameters
task:TimerTask

the task to schedule

delay:long

how many milliseconds to wait before executing the task