Java Reference
In-Depth Information
Listing 6.8. Web Server with Shutdown Support.
6.2.5. Delayed and Periodic Tasks
The
Timer
facility manages the execution of deferred (“run this task in 100 ms”) and
periodic (“run this task every 10 ms”) tasks. However,
Timer
has some drawbacks, and