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.
|
handleResults
assertNonNullFieldPrecondition, assertNonNullFieldPrecondition, completeField, completeValue, completeValueForEnum, completeValueForList, completeValueForScalar, fetchField, fieldTypeInfo, getFieldDef, getFieldDef, handleNonNullException, resolveField, resolveTypeForInterface, resolveTypeForUnion
public AsyncExecutionStrategy()
public AsyncExecutionStrategy(DataFetcherExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to usepublic 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