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 java.lang.Object implements ExecutionStrategyInstrumentationContext
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext>
contexts
-
Fields inherited from interface graphql.execution.instrumentation.ExecutionStrategyInstrumentationContext
NOOP
-
-
Constructor Summary
Constructors Constructor Description ChainedExecutionStrategyInstrumentationContext(com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleted(ExecutionResult result, java.lang.Throwable t)
This is invoked when the instrumentation step is fully completedvoid
onDispatched(java.util.concurrent.CompletableFuture<ExecutionResult> result)
This is invoked when the instrumentation step is initially dispatchedvoid
onFieldValuesException()
void
onFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList)
-
-
-
Field Detail
-
contexts
private final com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts
-
-
Constructor Detail
-
ChainedExecutionStrategyInstrumentationContext
ChainedExecutionStrategyInstrumentationContext(com.google.common.collect.ImmutableList<ExecutionStrategyInstrumentationContext> contexts)
-
-
Method Detail
-
onDispatched
public void onDispatched(java.util.concurrent.CompletableFuture<ExecutionResult> result)
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
public void onCompleted(ExecutionResult result, java.lang.Throwable t)
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
public void onFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList)
- Specified by:
onFieldValuesInfo
in interfaceExecutionStrategyInstrumentationContext
-
onFieldValuesException
public void onFieldValuesException()
- Specified by:
onFieldValuesException
in interfaceExecutionStrategyInstrumentationContext
-
-