[concurrency-interest] scheduleWithFixedDelay and exceptions

Travis Tabbal travis at tabbal.net
Wed Nov 1 15:51:57 EST 2006


The JavaDoc says:

"If any execution of the task encounters an exception, subsequent
executions are suppressed."

That tells me that the periodic task will stop running if it gets an
exception. That's a reasonable thing to do, but how do I check to see
if this happened? I'm getting the executor by calling
Executors.newSingleThreadScheduledExecutor(); ...

I want to be sure I can insert some error handling in the process
should one of them throw an exception.

Thanks!

Travis Tabbal


More information about the Concurrency-interest mailing list