Class ChainedInstrumentation.ChainedInstrumentationContext<T>

    • 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 completed
      void onDispatched​(java.util.concurrent.CompletableFuture<T> result)
      This is invoked when the instrumentation step is initially dispatched
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface InstrumentationContext<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 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