public final class ImmediateFuture extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Future<T> |
errorInstance(Throwable error)
Returns a future instance that produces an error.
|
static <T> Future<T> |
newInstance(T value)
Returns a future instance.
|
public static <T> Future<T> newInstance(T value)
value - the value, which may be null.Copyright © 2007-2012. All Rights Reserved.