public class AggregatingNotifyingFutureImpl extends NotifyingFutureImpl
| Constructor and Description |
|---|
AggregatingNotifyingFutureImpl(Object actualReturnValue,
int maxFutures) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
notifyDone() |
void |
setNetworkFuture(Future<Object> future) |
attachListenerpublic AggregatingNotifyingFutureImpl(Object actualReturnValue, int maxFutures)
public void setNetworkFuture(Future<Object> future)
setNetworkFuture in interface NotifyingNotifiableFuture<Object>setNetworkFuture in class NotifyingFutureImplpublic boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<Object>cancel in class NotifyingFutureImplpublic boolean isCancelled()
isCancelled in interface Future<Object>isCancelled in class NotifyingFutureImplpublic boolean isDone()
isDone in interface Future<Object>isDone in class NotifyingFutureImplpublic Object get() throws InterruptedException, ExecutionException
get in interface Future<Object>get in class NotifyingFutureImplInterruptedExceptionExecutionExceptionpublic Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Object>get in class NotifyingFutureImplInterruptedExceptionExecutionExceptionTimeoutExceptionpublic void notifyDone()
notifyDone in interface NotifyingNotifiableFuture<Object>notifyDone in class NotifyingFutureImplCopyright © 2012 JBoss by Red Hat. All Rights Reserved.