Package com.google.appengine.api.utils
Class FutureWrapper<K extends @Nullable Object,V>
- java.lang.Object
-
- com.google.appengine.api.utils.FutureWrapper<K,V>
-
-
Constructor Summary
Constructors Constructor Description FutureWrapper(Future<K> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
boolean
equals(@Nullable Object obj)
V
get()
V
get(long timeout, TimeUnit unit)
int
hashCode()
boolean
isCancelled()
boolean
isDone()
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<K extends @Nullable Object>
-
get
public V get() throws ExecutionException, InterruptedException
- Specified by:
get
in interfaceFuture<K extends @Nullable Object>
- Throws:
ExecutionException
InterruptedException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
- Specified by:
get
in interfaceFuture<K extends @Nullable Object>
- Throws:
InterruptedException
TimeoutException
ExecutionException
-
-