O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 28. Using Timer Tasks

DO OR DIE:

  • Start a task to run repeatedly at a certain interval

  • Start a task after a specified delay

  • Start a task to run at a specific time

This topic elucidates the use of tasks, made available to us via the java.util.TimerTask API. This is a wonderfully practical and easy-to-use API.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required