Class LazyTraceExecutor
- java.lang.Object
-
- org.springframework.cloud.sleuth.instrument.async.LazyTraceExecutor
-
-
Constructor Summary
Constructors Constructor Description LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate)LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate, String beanName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable command)static LazyTraceExecutorwrap(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate)Wraps the Executor in a trace instance.static LazyTraceExecutorwrap(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate, String beanName)Wraps the Executor in a trace instance.
-
-
-
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 factorydelegate- delegate to wrapbeanName- 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 factorydelegate- delegate to wrap- Returns:
- traced instance
-
-