介绍
- java.util.concurrent.ScheduledExecutorService
- public interface ScheduledExecutorService extends ExecutorService
API
- schedule
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit);
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit);
- scheduleAtFixedRate
- scheduleWithFixedDelay