Creative commons Attribution-NonCommercial license.
NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
Provides a mechanism to run a task at a regular interval without having
to play with threads. When implementing a RegularTask you must
ensure that the InterruptedException is respected to ensure the
application server shutdown process is not broken.
Initialise a regular task.
Entry point to the handler. All work done by the handler is done within
a loop, this allows tomcat to send a message to terminate the running
of the thread. All work in the loop has a global Exception handler to
prevent the thread terminating early.