Just wanted to check ... have you had good success with this approach? My basic need is to create some external management of this Scheduler, i.e. be able to change the polling interval, and stop / restart the Scheduler.
I was wondering if you have found the means below as effective to stop / start the Scheduler. I haven't gotten a chance to tear the source code apart, so I don't know if the SchedulerThread itself is acting as a dispatcher for starting other threads to handle tasks, but if so, I would be interested in how a stop on the SchedulerThread itself interacts with these child worker threads, and if all of them have to stop for the SchedulerThread to stop, or if the SchedulerThread stops immediately, but these workers keep running.
Again, forgive me if I've just speculated on a scenario which doesn't exist, I just haven't been able to read the source code yet.