| Constructor and Description |
|---|
FailedFuture(Throwable exception) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public FailedFuture(Throwable exception)
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>ExecutionExceptionCopyright © 2025. All rights reserved.