public final class CompositeNotifyingFuture<T> extends NotifyingFutureImpl<List<T>>
Constructor and Description |
---|
CompositeNotifyingFuture(List<NotifyingFuture<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() |
getFuture, notifyDone, notifyException, setFuture
attachListener, fireListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachListener
public CompositeNotifyingFuture(List<NotifyingFuture<T>> futures)
public boolean isDone()
public boolean isCancelled()
isCancelled
in interface Future<List<T>>
isCancelled
in class NotifyingFutureImpl<List<T>>
public boolean cancel(boolean mayInterruptIfRunning)
public List<T> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<List<T>>
get
in class NotifyingFutureImpl<List<T>>
InterruptedException
ExecutionException
TimeoutException
public List<T> get() throws InterruptedException, ExecutionException
get
in interface Future<List<T>>
get
in class NotifyingFutureImpl<List<T>>
InterruptedException
ExecutionException
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.