Interface InstrumentedExecutor
- All Superinterfaces:
Executor,RunnableInstrumenter
- All Known Subinterfaces:
InstrumentedExecutorService,InstrumentedScheduledExecutorService
An
Executor that has been instrumented to allow for propagation of thread state
and other instrumentation related tasks.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidImplementors can override to specify the targetExecutor.static ExecutorUnwrap instrumented executor if needed.static ExecutorServiceunwrap(ExecutorService executor) Unwrap instrumented executor if needed.Methods inherited from interface io.micronaut.scheduling.instrument.RunnableInstrumenter
instrument
-
Method Details
-
unwrap
Unwrap instrumented executor if needed.- Parameters:
executor- The executor- Returns:
- The unwrapped value or the original one
- Since:
- 4.0.0
-
unwrap
Unwrap instrumented executor if needed.- Parameters:
executor- The executor- Returns:
- The unwrapped value or the original one
- Since:
- 4.0.0
-
getTarget
Executor getTarget()Implementors can override to specify the targetExecutor.- Returns:
- The target
Executor
-
execute
-