Interface Async.CombinedBuilder<T>

  • Enclosing class:
    Async

    public static interface Async.CombinedBuilder<T>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(java.util.concurrent.CompletableFuture<T> completableFuture)  
      void addObject​(T objectT)  
      java.util.concurrent.CompletableFuture<java.util.List<T>> await()
      This will return a CompletableFuture<List<T>> even if the inputs are all materialised values
      java.lang.Object awaitPolymorphic()
      This will return a CompletableFuture<List<T>> if ANY of the input values are async otherwise it just return a materialised List<T>
    • Method Detail

      • add

        void add​(java.util.concurrent.CompletableFuture<T> completableFuture)
      • addObject

        void addObject​(T objectT)
      • await

        java.util.concurrent.CompletableFuture<java.util.List<T>> await()
        This will return a CompletableFuture<List<T>> even if the inputs are all materialised values
        Returns:
        a CompletableFuture to a List of values
      • awaitPolymorphic

        java.lang.Object awaitPolymorphic()
        This will return a CompletableFuture<List<T>> if ANY of the input values are async otherwise it just return a materialised List<T>
        Returns:
        either a CompletableFuture or a materialised list