1 7 8 package java.util.concurrent; 9 10 62 public interface Future<V> { 63 64 81 boolean cancel(boolean mayInterruptIfRunning); 82 83 89 boolean isCancelled(); 90 91 100 boolean isDone(); 101 102 113 V get() throws InterruptedException , ExecutionException ; 114 115 129 V get(long timeout, TimeUnit unit) 130 throws InterruptedException , ExecutionException , TimeoutException ; 131 } 132 133 134 135 | Popular Tags |