1 7 8 package java.util.concurrent; 9 10 30 public interface CompletionService<V> { 31 42 Future <V> submit(Callable <V> task); 43 44 45 59 Future <V> submit(Runnable task, V result); 60 61 67 Future <V> take() throws InterruptedException ; 68 69 70 77 Future <V> poll(); 78 79 92 Future <V> poll(long timeout, TimeUnit unit) throws InterruptedException ; 93 } 94 | Popular Tags |