Class Futures
java.lang.Object
com.hierynomus.protocol.commons.concurrent.Futures
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T, E extends Throwable>
Tget(Future<T> future, long timeout, TimeUnit unit, ExceptionWrapper<E> wrapper) static <T, E extends Throwable>
Tget(Future<T> future, ExceptionWrapper<E> wrapper) static <F,T> Future <T> transform(Future<F> future, AFuture.Function<F, T> f)
-
Constructor Details
-
Futures
public Futures()
-
-
Method Details
-
get
public static <T, E extends Throwable> T get(Future<T> future, ExceptionWrapper<E> wrapper) throws E - Throws:
E
-
get
public static <T, E extends Throwable> T get(Future<T> future, long timeout, TimeUnit unit, ExceptionWrapper<E> wrapper) throws E - Throws:
E
-
sequence
-
transform
-