Class PerLevelDataLoaderDispatchStrategy
- java.lang.Object
-
- graphql.execution.instrumentation.dataloader.PerLevelDataLoaderDispatchStrategy
-
- All Implemented Interfaces:
DataLoaderDispatchStrategy
@NullMarked public class PerLevelDataLoaderDispatchStrategy extends java.lang.Object implements DataLoaderDispatchStrategy
-
-
Field Summary
-
Fields inherited from interface graphql.execution.DataLoaderDispatchStrategy
NO_OP
-
-
Constructor Summary
Constructors Constructor Description PerLevelDataLoaderDispatchStrategy(ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deferredOnFieldValue(java.lang.String resultKey, FieldValueInfo fieldValueInfo, java.lang.Throwable throwable, ExecutionStrategyParameters parameters)
void
dispatchDLCFImpl(java.util.Set<java.lang.String> resultPathsToDispatch, java.lang.Integer level, graphql.execution.instrumentation.dataloader.PerLevelDataLoaderDispatchStrategy.CallStack callStack)
void
executeObject(ExecutionContext executionContext, ExecutionStrategyParameters parameters, int fieldCount)
void
executeObjectOnFieldValuesException(java.lang.Throwable t, ExecutionStrategyParameters parameters)
void
executeObjectOnFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters)
void
executionSerialStrategy(ExecutionContext executionContext, ExecutionStrategyParameters parameters)
void
executionStrategy(ExecutionContext executionContext, ExecutionStrategyParameters parameters, int fieldCount)
void
executionStrategyOnFieldValuesException(java.lang.Throwable t, ExecutionStrategyParameters parameters)
void
executionStrategyOnFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters)
void
fieldFetched(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, DataFetcher<?> dataFetcher, java.lang.Object fetchedValue, java.util.function.Supplier<DataFetchingEnvironment> dataFetchingEnvironment)
void
newDataLoaderLoadCall(java.lang.String resultPath, int level, org.dataloader.DataLoader dataLoader, java.lang.String dataLoaderName, java.lang.Object key, @Nullable DeferredCallContext deferredCallContext)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.execution.DataLoaderDispatchStrategy
modifyDataFetcher
-
-
-
-
Constructor Detail
-
PerLevelDataLoaderDispatchStrategy
public PerLevelDataLoaderDispatchStrategy(ExecutionContext executionContext)
-
-
Method Detail
-
executionStrategy
public void executionStrategy(ExecutionContext executionContext, ExecutionStrategyParameters parameters, int fieldCount)
- Specified by:
executionStrategy
in interfaceDataLoaderDispatchStrategy
-
executionSerialStrategy
public void executionSerialStrategy(ExecutionContext executionContext, ExecutionStrategyParameters parameters)
- Specified by:
executionSerialStrategy
in interfaceDataLoaderDispatchStrategy
-
executionStrategyOnFieldValuesInfo
public void executionStrategyOnFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters)
- Specified by:
executionStrategyOnFieldValuesInfo
in interfaceDataLoaderDispatchStrategy
-
executionStrategyOnFieldValuesException
public void executionStrategyOnFieldValuesException(java.lang.Throwable t, ExecutionStrategyParameters parameters)
- Specified by:
executionStrategyOnFieldValuesException
in interfaceDataLoaderDispatchStrategy
-
executeObject
public void executeObject(ExecutionContext executionContext, ExecutionStrategyParameters parameters, int fieldCount)
- Specified by:
executeObject
in interfaceDataLoaderDispatchStrategy
-
executeObjectOnFieldValuesInfo
public void executeObjectOnFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters)
- Specified by:
executeObjectOnFieldValuesInfo
in interfaceDataLoaderDispatchStrategy
-
deferredOnFieldValue
public void deferredOnFieldValue(java.lang.String resultKey, FieldValueInfo fieldValueInfo, java.lang.Throwable throwable, ExecutionStrategyParameters parameters)
- Specified by:
deferredOnFieldValue
in interfaceDataLoaderDispatchStrategy
-
executeObjectOnFieldValuesException
public void executeObjectOnFieldValuesException(java.lang.Throwable t, ExecutionStrategyParameters parameters)
- Specified by:
executeObjectOnFieldValuesException
in interfaceDataLoaderDispatchStrategy
-
fieldFetched
public void fieldFetched(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, DataFetcher<?> dataFetcher, java.lang.Object fetchedValue, java.util.function.Supplier<DataFetchingEnvironment> dataFetchingEnvironment)
- Specified by:
fieldFetched
in interfaceDataLoaderDispatchStrategy
-
dispatchDLCFImpl
public void dispatchDLCFImpl(java.util.Set<java.lang.String> resultPathsToDispatch, java.lang.Integer level, graphql.execution.instrumentation.dataloader.PerLevelDataLoaderDispatchStrategy.CallStack callStack)
-
newDataLoaderLoadCall
public void newDataLoaderLoadCall(java.lang.String resultPath, int level, org.dataloader.DataLoader dataLoader, java.lang.String dataLoaderName, java.lang.Object key, @Nullable DeferredCallContext deferredCallContext)
-
-