CompletableFuture.completedFuture(U)@Deprecated
public class FixedFuture<T>
extends java.lang.Object
implements java.util.concurrent.Future<T>
| Constructor and Description |
|---|
FixedFuture(T value)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Deprecated.
|
static <T> FixedFuture<T> |
completeExceptionally(java.lang.Throwable throwable)
Deprecated.
|
T |
get()
Deprecated.
|
T |
get(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
boolean |
isCancelled()
Deprecated.
|
boolean |
isDone()
Deprecated.
|
public FixedFuture(T value)
public static <T> FixedFuture<T> completeExceptionally(java.lang.Throwable throwable)
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface java.util.concurrent.Future<T>public boolean isCancelled()
isCancelled in interface java.util.concurrent.Future<T>public boolean isDone()
isDone in interface java.util.concurrent.Future<T>public T get() throws java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Future<T>java.util.concurrent.ExecutionException