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>
ExecutionException
public T get(long timeout, TimeUnit unit) throws ExecutionException
get
in interface Future<T>
ExecutionException
Copyright © 2024. All rights reserved.