| Constructor and Description |
|---|
DaRPCNameNodeFuture(com.ibm.darpc.DaRPCFuture<DaRPCNameNodeRequest,DaRPCNameNodeResponse> future,
T response) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
int |
getTicket() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isPrefetched() |
void |
setPrefetched(boolean prefetched) |
public DaRPCNameNodeFuture(com.ibm.darpc.DaRPCFuture<DaRPCNameNodeRequest,DaRPCNameNodeResponse> future, T response)
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 isPrefetched()
isPrefetched in interface RpcFuture<T>public void setPrefetched(boolean prefetched)
setPrefetched in interface RpcFuture<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>Copyright © 2018 The Apache Software Foundation. All rights reserved.