@Singleton @Requires(beans=TracingWrapper.class) @Requires(property="tracing.instrument-threads",value="true",defaultValue="false") public class ExecutorServiceInstrumenter extends Object implements BeanCreatedEventListener<ExecutorService>
TracingWrapper
.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_INSTRUMENT_THREADS
Whether to instrument threads.
|
Constructor and Description |
---|
ExecutorServiceInstrumenter(TracingWrapper tracingWrapper)
Creates a new
ExecutorServiceInstrumenter . |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
onCreated(BeanCreatedEvent<ExecutorService> event)
Fired when a bean is created and all
PostConstruct initialization hooks have been
called. |
public static final String PROPERTY_INSTRUMENT_THREADS
public ExecutorServiceInstrumenter(TracingWrapper tracingWrapper)
ExecutorServiceInstrumenter
.tracingWrapper
- The tracingWrapperpublic ExecutorService onCreated(BeanCreatedEvent<ExecutorService> event)
BeanCreatedEventListener
PostConstruct
initialization hooks have been
called.onCreated
in interface BeanCreatedEventListener<ExecutorService>
event
- The bean created event