Class DataLoaderInstrumentationHelper


  • @PublicApi
    public class DataLoaderInstrumentationHelper
    extends java.lang.Object
    • Constructor Detail

      • DataLoaderInstrumentationHelper

        public DataLoaderInstrumentationHelper()
    • Method Detail

      • whenDispatched

        public static <U> DataLoaderInstrumentationContext<U> whenDispatched​(java.lang.Runnable codeToRun)
        Allows for the more fluent away to return an instrumentation context that runs the specified code on instrumentation step dispatch.
        Type Parameters:
        U - the generic type
        Parameters:
        codeToRun - the code to run on dispatch
        Returns:
        an instrumentation context
      • whenCompleted

        public static <U> DataLoaderInstrumentationContext<U> whenCompleted​(java.util.function.BiConsumer<U,​java.lang.Throwable> codeToRun)
        Allows for the more fluent away to return an instrumentation context that runs the specified code on instrumentation step completion.
        Type Parameters:
        U - the generic type
        Parameters:
        codeToRun - the code to run on completion
        Returns:
        an instrumentation context