1 7 8 package java.util.concurrent; 9 import java.util.concurrent.atomic.*; 10 import java.util.*; 11 12 69 public interface ScheduledExecutorService extends ExecutorService { 70 71 84 public ScheduledFuture <?> schedule(Runnable command, long delay, TimeUnit unit); 85 86 97 public <V> ScheduledFuture <V> schedule(Callable <V> callable, long delay, TimeUnit unit); 98 99 121 public ScheduledFuture <?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit); 122 123 144 public ScheduledFuture <?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit); 145 146 } 147 | Popular Tags |