@PublicApi public class AsyncExecutionStrategy extends AbstractAsyncExecutionStrategy
dataFetcherExceptionHandler, executionStepInfoFactory, fieldCollector, valuesResolver| Constructor and Description |
|---|
AsyncExecutionStrategy()
The standard graphql execution strategy that runs fields asynchronously
|
AsyncExecutionStrategy(DataFetcherExceptionHandler exceptionHandler)
Creates a execution strategy that uses the provided exception handler
|
| 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, completeValueForNull, completeValueForObject, completeValueForScalar, createExecutionStepInfo, fetchField, getFieldDef, getFieldDef, getNormalizedField, handleFetchingException, handleNonNullException, mkNameForPath, mkNameForPath, mkNameForPath, resolveField, resolveFieldWithInfo, resolveType, toIterable, toIterable, unboxPossibleDataFetcherResultpublic AsyncExecutionStrategy()
public AsyncExecutionStrategy(DataFetcherExceptionHandler exceptionHandler)
exceptionHandler - the exception handler to usepublic 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