org.keridwen.core.messaging.internal
Class FutureUtils
java.lang.Object
org.keridwen.core.messaging.internal.FutureUtils
public final class FutureUtils
- extends Object
Helper class that convert a Future of Future in Future.
Method Summary |
static
|
flatten(Future<Future<T>> future)
Converts a Future of Future in a simple Future. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flatten
public static <T> Future<T> flatten(Future<Future<T>> future)
- Converts a Future of Future in a simple Future.
- Type Parameters:
T
- the type of data handled by the future- Parameters:
future
- the future to flatten
- Returns:
- a flattened future
Copyright © 2010-2013 Artenum. All Rights Reserved.