Constructor and Description |
---|
CompositeFuture(List<? extends Future<T>> futures) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
List<T> |
get() |
List<T> |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<List<T>>
public List<T> get() throws InterruptedException, ExecutionException
get
in interface Future<List<T>>
InterruptedException
ExecutionException
public List<T> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<List<T>>
InterruptedException
ExecutionException
TimeoutException