Package graphql.execution
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 aCompletableFuture<List<T>>
even if the inputs are all materialised valuesjava.lang.Object
awaitPolymorphic()
This will return aCompletableFuture<List<T>>
if ANY of the input values are async otherwise it just return a materialisedList<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 aCompletableFuture<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 aCompletableFuture<List<T>>
if ANY of the input values are async otherwise it just return a materialisedList<T>
- Returns:
- either a CompletableFuture or a materialised list
-
-