@ThreadSafe public final class FutureSupport extends Object
Future values.| Modifier and Type | Class and Description |
|---|---|
private static class |
FutureSupport.FutureNow<T>
An implementation of
Future that returns a value that is
already known. |
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOG
Class logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
FutureSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Collection<Item<T>> |
futureItems(Future<Collection<Item<T>>> future)
Resolves the future value of a
Future collection value. |
static <T> Future<T> |
futureNow(T t)
Returns a
Future containing an already computed value. |
private static final Logger LOG
@Nonnull public static <T> Future<T> futureNow(T t)
Future containing an already computed value.T - type of value to be returnedt - value to be returnedFuture returning the passed value@Nonnull public static <T> Collection<Item<T>> futureItems(@Nonnull Future<Collection<Item<T>>> future) throws StageProcessingException
Future collection value.T - type of the items in the collectionfuture - Future value to be resolvedFutureStageProcessingException - unless resolution is successfulCopyright © 1999–2016. All rights reserved.