@PublicApi public class AsyncSerialExecutionStrategy extends AbstractAsyncExecutionStrategy
AsyncExecutionStrategy
for a non serial (parallel) execution of every field.dataFetcherExceptionHandler, executionStepInfoFactory, 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, completeValueForNull, completeValueForObject, completeValueForScalar, createExecutionStepInfo, fetchField, getFieldDef, getFieldDef, getNormalizedField, handleFetchingException, handleNonNullException, mkNameForPath, mkNameForPath, mkNameForPath, resolveField, resolveFieldWithInfo, resolveType, toIterable, toIterable, unboxPossibleDataFetcherResult
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
- in the future if a non null field resolves to a null value