Interface TimerFactory
- All Known Implementing Classes:
SingletonTimerFactory
public interface TimerFactory
This class provides access to Timer objects for various purposes.
The scheme for creation of Timer objects is implementation-defined.
-
Method Summary
-
Method Details
-
schedule
Schedule a task.- Parameters:
task
- the task to scheduledelay
- how many milliseconds to wait before executing the task
-
cancel
Cancel a task.- Parameters:
task
- the task to cancel
-