Class TracingDaemonPool.TracingRunnable

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    TracingDaemonPool

    protected static class TracingDaemonPool.TracingRunnable
    extends Object
    implements Runnable
    A Runnable that executes another runnable after activating a tracing span.
    • Field Detail

      • f_span

        protected final io.opentracing.Span f_span
        The Span.
      • f_lHash

        protected final long f_lHash
        The Runnable's hash.
    • Constructor Detail

      • TracingRunnable

        protected TracingRunnable​(io.opentracing.Span span,
                                  Runnable delegate)
        Constructs a new TracingRunnable for the provided span and Runnable delegate.
        Parameters:
        span - the Span to use
        delegate - the task to trace
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable