at.molindo.utils.concurrent
Class FutureUtils
java.lang.Object
at.molindo.utils.concurrent.FutureUtils
public class FutureUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrap
public static <F,T> Future<T> wrap(Future<F> future,
Function<F,T> f)
- Returns:
- a new
Future that applies the given Function to
the value returned by Future.get() or
Future.get(long, TimeUnit) (on every invocation)
Copyright © 2013 Molindo GmbH. All Rights Reserved.