Package com.google.api.core
Class ForwardingApiFuture<T>
- java.lang.Object
-
- com.google.api.core.ForwardingApiFuture<T>
-
-
Constructor Summary
Constructors Constructor Description ForwardingApiFuture(ApiFuture<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(Runnable listener, Executor executor)booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public T get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<T>
-
addListener
public void addListener(Runnable listener, Executor executor)
- Specified by:
addListenerin interfaceApiFuture<T>
-
-