Class LazyTraceExecutor
java.lang.Object
org.springframework.cloud.sleuth.instrument.async.LazyTraceExecutor
- All Implemented Interfaces:
Executor
- Since:
- 1.0.0
- Author:
- Dave Syer
-
Constructor Summary
ConstructorsConstructorDescriptionLazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate) LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate, String beanName) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic LazyTraceExecutorWraps the Executor in a trace instance.static LazyTraceExecutorWraps the Executor in a trace instance.
-
Constructor Details
-
LazyTraceExecutor
public LazyTraceExecutor(org.springframework.beans.factory.BeanFactory beanFactory, Executor delegate) -
LazyTraceExecutor
-
-
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 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
-
execute
-