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) |
attachListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachListener
public 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>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
get
in class NotifyingFutureImpl<T>
InterruptedException
ExecutionException
TimeoutException
public void notifyDone()
notifyDone
in interface NotifyingNotifiableFuture<T>
notifyDone
in class BaseNotifyingFuture<T>
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.