@InternalApi public class ApiFutureToListenableFuture<V> extends Object implements com.google.common.util.concurrent.ListenableFuture<V>
| Constructor and Description |
|---|
ApiFutureToListenableFuture(ApiFuture<V> apiFuture) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener,
Executor executor) |
boolean |
cancel(boolean b) |
V |
get() |
V |
get(long l,
TimeUnit timeUnit) |
boolean |
isCancelled() |
boolean |
isDone() |
public void addListener(Runnable listener, Executor executor)
addListener in interface com.google.common.util.concurrent.ListenableFuture<V>public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutException