Class LazyTraceExecutor

java.lang.Object
org.springframework.cloud.sleuth.instrument.async.LazyTraceExecutor
All Implemented Interfaces:
Executor

public class LazyTraceExecutor extends Object implements Executor
Executor that wraps Runnable in a trace representation.
Since:
1.0.0
Author:
Dave Syer
  • Constructor Details

    • LazyTraceExecutor

      public LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate)
    • LazyTraceExecutor

      public LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate, String beanName)
  • Method Details

    • wrap

      public static LazyTraceExecutor wrap(org.springframework.beans.factory.BeanFactory beanFactory, @NonNull Executor delegate, String beanName)
      Wraps the Executor in a trace instance.
      Parameters:
      beanFactory - bean factory
      delegate - delegate to wrap
      beanName - bean name
      Returns:
      traced instance
    • wrap

      public static LazyTraceExecutor wrap(org.springframework.beans.factory.BeanFactory beanFactory, @NonNull Executor delegate)
      Wraps the Executor in a trace instance.
      Parameters:
      beanFactory - bean factory
      delegate - delegate to wrap
      Returns:
      traced instance
    • execute

      public void execute(Runnable command)
      Specified by:
      execute in interface Executor