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.
|
handleResultsassertNonNullFieldPrecondition, assertNonNullFieldPrecondition, completeField, completeValue, completeValueForEnum, completeValueForList, completeValueForList, completeValueForObject, completeValueForScalar, createExecutionStepInfo, fetchField, getFieldDef, getFieldDef, handleNonNullException, mkNameForPath, mkNameForPath, mkNameForPath, resolveField, resolveFieldWithInfo, resolveFieldWithInfoToNull, resolveType, toIterable, toIterablepublic AsyncSerialExecutionStrategy()
public AsyncSerialExecutionStrategy(DataFetcherExceptionHandler exceptionHandler)
public java.util.concurrent.CompletableFuture<ExecutionResult> execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters) throws NonNullableFieldWasNullException
ExecutionStrategyexecute in class ExecutionStrategyexecutionContext - contains the top level execution parametersparameters - contains the parameters holding the fields to be executed and source objectExecutionResultNonNullableFieldWasNullException - in the future if a non null field resolves to a null value