public class AggregatingNotifyingFutureImpl<T> extends NotifyingFutureImpl<T>
| Constructor and Description |
|---|
AggregatingNotifyingFutureImpl(T actualReturnValue,
int maxFutures) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
notifyDone() |
void |
setNetworkFuture(Future<T> future) |
attachListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachListenerpublic AggregatingNotifyingFutureImpl(T actualReturnValue, int maxFutures)
public void setNetworkFuture(Future<T> future)
setNetworkFuture in interface NotifyingNotifiableFuture<T>setNetworkFuture in class NotifyingFutureImpl<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>isCancelled in class NotifyingFutureImpl<T>public boolean isDone()
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>get in class NotifyingFutureImpl<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>get in class NotifyingFutureImpl<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic void notifyDone()
notifyDone in interface NotifyingNotifiableFuture<T>notifyDone in class BaseNotifyingFuture<T>Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.