public class CombinedFuture<V> extends Object implements Future<List<V>>, Serializable
| Constructor and Description |
|---|
CombinedFuture(Collection<Future> futures) |
CombinedFuture(Future<V>... futures) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
List<V> |
get() |
List<V> |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public CombinedFuture(Collection<Future> futures)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<List<V>>public List<V> get() throws InterruptedException, ExecutionException
get in interface Future<List<V>>InterruptedExceptionExecutionExceptionpublic List<V> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<List<V>>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2019. All rights reserved.