I'm using the ScheduledExecutorService to start multiple tasks every x seconds
eg.
ScheduledExecutorService schedules;
schedules.scheduleAtFixedRate(new UpdateTask(), 0, 10, TimeUnit.SECONDS);
Works perfectly, unless the system changes date "back in time". Because we have a battery less system, our system starts with a wrong date and get the correct time a bit later from an other system.
If they get a correct time in the future, no problem. If they get a time in the past, the scheduled tasks don't run anymore.
Anyway to restart or reset the schedules so they start counting from the new, corrected time?