public class AsyncExecutionStrategy extends AbstractAsyncExecutionStrategy
dataFetcherExceptionHandler, 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, completeValueForScalar, fetchField, fieldTypeInfo, getFieldDef, getFieldDef, handleNonNullException, resolveField, resolveTypeForInterface, resolveTypeForUnionpublic 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 - if a non null field resolves to a null value