As the name suggests, we have a daemon framework which uses Executor service to schedule daemons.
java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable
command, long initialDelay, long delay, TimeUnit unit)
At runtime, I want to change the delay between two runs of the Runnable class, without terminating our application.
Is it possible? If yes, how?
In that case you need to cancel the schedule and add it again.
or you can make the task reschedule itself.
This way the period can change every time it is run.