|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.common.util.ImmediateFuture
public final class ImmediateFuture
Implements a future that is immediately available.
| Method Summary | ||
|---|---|---|
static
|
errorInstance(Throwable error)
Returns a future instance that produces an error. |
|
static
|
newInstance(T value)
Returns a future instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Future<T> newInstance(T value)
value - the value, which may be null.
public static <T> Future<T> errorInstance(Throwable error)
error - the exception that should be wrapped in an
ExecutionException when {link #get()} is called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||