Class ChainedInstrumentation.ChainedInstrumentationContext<T>
java.lang.Object
graphql.execution.instrumentation.ChainedInstrumentation.ChainedInstrumentationContext<T>
- All Implemented Interfaces:
InstrumentationContext<T>
- Enclosing class:
ChainedInstrumentation
private static class ChainedInstrumentation.ChainedInstrumentationContext<T>
extends Object
implements InstrumentationContext<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList
<InstrumentationContext<T>> -
Constructor Summary
ConstructorsConstructorDescriptionChainedInstrumentationContext
(com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCompleted
(T result, Throwable t) This is invoked when the instrumentation step is fully completedvoid
onDispatched
(CompletableFuture<T> result) This is invoked when the instrumentation step is initially dispatched
-
Field Details
-
contexts
-
-
Constructor Details
-
ChainedInstrumentationContext
ChainedInstrumentationContext(com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts)
-
-
Method Details
-
onDispatched
Description copied from interface:InstrumentationContext
This is invoked when the instrumentation step is initially dispatched- Specified by:
onDispatched
in interfaceInstrumentationContext<T>
- 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<T>
- 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
-