* Added periodic runnable to offload I/O from ScheduledExecutorService's thread. * Added missing class header. * Do not invoke `getMillisecondsDelayUntilNextRun` from synchronized section. * Use java.time.Duration to represent time interval. * Use synchronized block in scheduleNextRun.