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 Details

  • Constructor Details

    • ChainedInstrumentationContext

      ChainedInstrumentationContext(com.google.common.collect.ImmutableList<InstrumentationContext<T>> contexts)
  • Method Details

    • onDispatched

      public void onDispatched(CompletableFuture<T> result)
      Description copied from interface: InstrumentationContext
      This is invoked when the instrumentation step is initially dispatched
      Specified by:
      onDispatched in interface InstrumentationContext<T>
      Parameters:
      result - the result of the step as a completable future
    • onCompleted

      public void onCompleted(T result, Throwable t)
      Description copied from interface: InstrumentationContext
      This is invoked when the instrumentation step is fully completed
      Specified by:
      onCompleted in interface InstrumentationContext<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