Class ChainedInstrumentation.ChainedExecutionStrategyInstrumentationContext
java.lang.Object
graphql.execution.instrumentation.ChainedInstrumentation.ChainedExecutionStrategyInstrumentationContext
- All Implemented Interfaces:
ExecutionStrategyInstrumentationContext
,InstrumentationContext<ExecutionResult>
- Enclosing class:
ChainedInstrumentation
private static class ChainedInstrumentation.ChainedExecutionStrategyInstrumentationContext
extends Object
implements ExecutionStrategyInstrumentationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList
<ExecutionStrategyInstrumentationContext> Fields inherited from interface graphql.execution.instrumentation.ExecutionStrategyInstrumentationContext
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionChainedExecutionStrategyInstrumentationContext
(com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCompleted
(ExecutionResult result, Throwable t) This is invoked when the instrumentation step is fully completedvoid
onDispatched
(CompletableFuture<ExecutionResult> result) This is invoked when the instrumentation step is initially dispatchedvoid
void
onFieldValuesInfo
(List<FieldValueInfo> fieldValueInfoList)
-
Field Details
-
contexts
private final com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts
-
-
Constructor Details
-
ChainedExecutionStrategyInstrumentationContext
ChainedExecutionStrategyInstrumentationContext(com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts)
-
-
Method Details
-
onDispatched
Description copied from interface:InstrumentationContext
This is invoked when the instrumentation step is initially dispatched- Specified by:
onDispatched
in interfaceInstrumentationContext<ExecutionResult>
- Parameters:
result
- the result of the step as a completable future
-
onCompleted
Description copied from interface:InstrumentationContext
This is invoked when the instrumentation step is fully completed- Specified by:
onCompleted
in interfaceInstrumentationContext<ExecutionResult>
- Parameters:
result
- the result of the step (which may be null)t
- this exception will be non null if an exception was thrown during the step
-
onFieldValuesInfo
- Specified by:
onFieldValuesInfo
in interfaceExecutionStrategyInstrumentationContext
-
onFieldValuesException
public void onFieldValuesException()- Specified by:
onFieldValuesException
in interfaceExecutionStrategyInstrumentationContext
-