at.molindo.utils.concurrent
Class FutureUtils

java.lang.Object
  extended by at.molindo.utils.concurrent.FutureUtils

public class FutureUtils
extends Object


Method Summary
static
<F,T> Future<T>
wrap(Future<F> future, Function<F,T> f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.