presto-jmx/src/main/java/io/prestosql/plugin/jmx/JmxPeriodicSampler.java/JmxPeriodicSampler/schedule
class JmxPeriodicSampler:    private void schedule()
    {
        long nextDumpTimestamp = lastDumpTimestamp + period;
        long nowMillis = currentTimeMillis();
        long delay = nextDumpTimestamp - nowMillis;
        executor.schedule(this, Math.max(delay, 0), MILLISECONDS);
    }