Class Futures


  • public class Futures
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Futures()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T,​E extends java.lang.Throwable>
      T
      get​(java.util.concurrent.Future<T> future, long timeout, java.util.concurrent.TimeUnit unit, ExceptionWrapper<E> wrapper)  
      static <T,​E extends java.lang.Throwable>
      T
      get​(java.util.concurrent.Future<T> future, ExceptionWrapper<E> wrapper)  
      static <T> java.util.concurrent.Future<java.util.List<T>> sequence​(java.util.List<java.util.concurrent.Future<T>> futures)  
      static <F,​T>
      java.util.concurrent.Future<T>
      transform​(java.util.concurrent.Future<F> future, AFuture.Function<F,​T> f)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Futures

        public Futures()
    • Method Detail

      • get

        public static <T,​E extends java.lang.Throwable> T get​(java.util.concurrent.Future<T> future,
                                                                    ExceptionWrapper<E> wrapper)
                                                             throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable
      • get

        public static <T,​E extends java.lang.Throwable> T get​(java.util.concurrent.Future<T> future,
                                                                    long timeout,
                                                                    java.util.concurrent.TimeUnit unit,
                                                                    ExceptionWrapper<E> wrapper)
                                                             throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable
      • sequence

        public static <T> java.util.concurrent.Future<java.util.List<T>> sequence​(java.util.List<java.util.concurrent.Future<T>> futures)
      • transform

        public static <F,​T> java.util.concurrent.Future<T> transform​(java.util.concurrent.Future<F> future,
                                                                           AFuture.Function<F,​T> f)