We have some code in our product that uses the ScheduledThreadPoolExecutor schedule method to schedule tasks at intervals. The code is something like below --