| Constructor and Description |
|---|
CompletedFuture(T v,
Throwable re) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws ExecutionException
get in interface Future<T>ExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws ExecutionException
get in interface Future<T>ExecutionException