public class AsyncSerialExecutionStrategy extends AbstractAsyncExecutionStrategy
AsyncExecutionStrategy
for a non serial (parallel) execution of every field.dataFetcherExceptionHandler, fieldCollector, valuesResolver
Constructor and Description |
---|
AsyncSerialExecutionStrategy() |
AsyncSerialExecutionStrategy(DataFetcherExceptionHandler exceptionHandler) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<ExecutionResult> |
execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
This is the entry point to an execution strategy.
|
handleResults
assertNonNullFieldPrecondition, assertNonNullFieldPrecondition, completeField, completeValue, completeValueForEnum, completeValueForList, completeValueForList, completeValueForScalar, fetchField, fieldTypeInfo, getFieldDef, getFieldDef, handleNonNullException, resolveField, resolveType, resolveTypeForInterface, resolveTypeForUnion, toIterable, toIterable, unboxPossibleOptional
public AsyncSerialExecutionStrategy()
public AsyncSerialExecutionStrategy(DataFetcherExceptionHandler exceptionHandler)
public java.util.concurrent.CompletableFuture<ExecutionResult> execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters) throws NonNullableFieldWasNullException
ExecutionStrategy
execute
in class ExecutionStrategy
executionContext
- contains the top level execution parametersparameters
- contains the parameters holding the fields to be executed and source objectExecutionResult
NonNullableFieldWasNullException
- if a non null field resolves to a null value