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 java.lang.Object implements InstrumentationContext<T>
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<InstrumentationContext<T>>
contexts
-
Constructor Summary
Constructors Constructor Description ChainedInstrumentationContext(com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleted(T result, java.lang.Throwable t)
This is invoked when the instrumentation step is fully completedvoid
onDispatched(java.util.concurrent.CompletableFuture<T> result)
This is invoked when the instrumentation step is initially dispatched
-
-
-
Field Detail
-
contexts
private final com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts
-
-
Constructor Detail
-
ChainedInstrumentationContext
ChainedInstrumentationContext(com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts)
-
-
Method Detail
-
onDispatched
public void onDispatched(java.util.concurrent.CompletableFuture<T> result)
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
public void onCompleted(T 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<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
-
-