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 booleancancel(boolean mayInterruptIfRunning)booleanequals(@Nullable Object obj)Vget()Vget(long timeout, TimeUnit unit)inthashCode()booleanisCancelled()booleanisDone()
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<K extends @Nullable Object>
-
get
public V get() throws ExecutionException, InterruptedException
- Specified by:
getin interfaceFuture<K extends @Nullable Object>- Throws:
ExecutionExceptionInterruptedException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
- Specified by:
getin interfaceFuture<K extends @Nullable Object>- Throws:
InterruptedExceptionTimeoutExceptionExecutionException
-
-