Package graphql.execution.incremental
Class DeferredExecutionSupport.DeferredExecutionSupportImpl
- java.lang.Object
-
- graphql.execution.incremental.DeferredExecutionSupport.DeferredExecutionSupportImpl
-
- All Implemented Interfaces:
DeferredExecutionSupport
- Enclosing interface:
- DeferredExecutionSupport
public static class DeferredExecutionSupport.DeferredExecutionSupportImpl extends java.lang.Object implements DeferredExecutionSupport
An implementation that actually executes the deferred fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.execution.incremental.DeferredExecutionSupport
DeferredExecutionSupport.DeferredExecutionSupportImpl, DeferredExecutionSupport.NoOp
-
-
Field Summary
-
Fields inherited from interface graphql.execution.incremental.DeferredExecutionSupport
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeferredExecutionSupportImpl(MergedSelectionSet mergedSelectionSet, ExecutionStrategyParameters parameters, ExecutionContext executionContext, java.util.function.BiFunction<ExecutionContext,ExecutionStrategyParameters,java.util.concurrent.CompletableFuture<FieldValueInfo>> resolveFieldWithInfoFn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<IncrementalCall<? extends IncrementalPayload>>
createCalls(ExecutionStrategyParameters executionStrategyParameters)
int
deferredFieldsCount()
java.util.List<java.lang.String>
getNonDeferredFieldNames(java.util.List<java.lang.String> allFieldNames)
boolean
isDeferredField(MergedField mergedField)
-
-
-
Constructor Detail
-
DeferredExecutionSupportImpl
public DeferredExecutionSupportImpl(MergedSelectionSet mergedSelectionSet, ExecutionStrategyParameters parameters, ExecutionContext executionContext, java.util.function.BiFunction<ExecutionContext,ExecutionStrategyParameters,java.util.concurrent.CompletableFuture<FieldValueInfo>> resolveFieldWithInfoFn)
-
-
Method Detail
-
isDeferredField
public boolean isDeferredField(MergedField mergedField)
- Specified by:
isDeferredField
in interfaceDeferredExecutionSupport
-
deferredFieldsCount
public int deferredFieldsCount()
- Specified by:
deferredFieldsCount
in interfaceDeferredExecutionSupport
-
getNonDeferredFieldNames
public java.util.List<java.lang.String> getNonDeferredFieldNames(java.util.List<java.lang.String> allFieldNames)
- Specified by:
getNonDeferredFieldNames
in interfaceDeferredExecutionSupport
-
createCalls
public java.util.Set<IncrementalCall<? extends IncrementalPayload>> createCalls(ExecutionStrategyParameters executionStrategyParameters)
- Specified by:
createCalls
in interfaceDeferredExecutionSupport
-
-