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) |
attachListener
public AggregatingNotifyingFutureImpl(Object actualReturnValue, int maxFutures)
public void setNetworkFuture(Future<Object> future)
setNetworkFuture
in interface NotifyingNotifiableFuture<Object>
setNetworkFuture
in class NotifyingFutureImpl
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<Object>
cancel
in class NotifyingFutureImpl
public boolean isCancelled()
isCancelled
in interface Future<Object>
isCancelled
in class NotifyingFutureImpl
public boolean isDone()
isDone
in interface Future<Object>
isDone
in class NotifyingFutureImpl
public Object get() throws InterruptedException, ExecutionException
get
in interface Future<Object>
get
in class NotifyingFutureImpl
InterruptedException
ExecutionException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Object>
get
in class NotifyingFutureImpl
InterruptedException
ExecutionException
TimeoutException
public void notifyDone()
notifyDone
in interface NotifyingNotifiableFuture<Object>
notifyDone
in class NotifyingFutureImpl
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.