| Modifier and Type | Field and Description |
|---|---|
protected static int |
RPC_DONE |
protected static int |
RPC_ERROR |
protected static int |
RPC_PENDING |
| Constructor and Description |
|---|
MultiFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Future<R> dataFuture) |
abstract void |
aggregate(R obj) |
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
completeOperation() |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
abstract T |
getAggregate() |
boolean |
isCancelled() |
boolean |
isDone() |
protected static int RPC_PENDING
protected static int RPC_DONE
protected static int RPC_ERROR
public abstract void aggregate(R obj)
public abstract T getAggregate()
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public void completeOperation()
Copyright © 2018 The Apache Software Foundation. All rights reserved.