Class 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 Detail

      • 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 Detail

      • 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