Package com.google.api.core
Class ApiFutureToListenableFuture<V>
java.lang.Object
com.google.api.core.ApiFutureToListenableFuture<V>
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>,Future<V>
@InternalApi
public class ApiFutureToListenableFuture<V>
extends Object
implements com.google.common.util.concurrent.ListenableFuture<V>
INTERNAL USE ONLY. Adapter from ApiFuture to Guava ListenableFuture.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApiFutureToListenableFuture
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfacecom.google.common.util.concurrent.ListenableFuture<V>
-
cancel
public boolean cancel(boolean b) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-