class ResultBoundedCompletionService.QueueingFuture<T> extends Object implements RunnableFuture<T>
| Modifier and Type | Field and Description |
|---|---|
private int |
callTimeout |
private boolean |
cancelled |
private ExecutionException |
exeEx |
private RetryingCallable<T> |
future |
private T |
result |
private boolean |
resultObtained |
private RpcRetryingCaller<T> |
retryingCaller |
| Constructor and Description |
|---|
ResultBoundedCompletionService.QueueingFuture(RetryingCallable<T> future,
int callTimeout) |
private final RetryingCallable<T> future
private T result
private ExecutionException exeEx
private volatile boolean cancelled
private final int callTimeout
private final RpcRetryingCaller<T> retryingCaller
private boolean resultObtained
public ResultBoundedCompletionService.QueueingFuture(RetryingCallable<T> future, int callTimeout)
public void run()
run in interface Runnablerun in interface RunnableFuture<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>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>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.