// 带有延迟的执行一次任务,并通过Future.get()阻塞任务直到执行结束 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit); // 带有延迟的执行一次任务,并通过Future.get()阻塞任务直到执行结束,并获取任务结果 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit); // 带延迟时间的调度,循环执行,固定频率 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit); // 带延迟时间的调度,循环执行,固定延迟 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit);