How to tell ScheduledExecutorService to ignore overlapping executions after resuming computer from suspension/hibernation
Assuming the task is scheduled at a fixed rate via the ScheduledExecutorService, change the task to a self-scheduling task.In this manner there is always only 1 task waiting to be executed.