Interface InstrumentedExecutor
- All Superinterfaces:
Executor, RunnableInstrumenter
- All Known Subinterfaces:
InstrumentedExecutorService, InstrumentedScheduledExecutorService
- All Known Implementing Classes:
ContextPropagatingExecutorService, ContextPropagatingScheduledExecutorService
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 RunnableInstrumenter
instrument
-
Method Details
-
unwrap
-
unwrap
Unwrap instrumented executor if needed.- Parameters:
executor- The executor- Returns:
- The unwrapped value or the original one
- Since:
- 4.0.0
-
getTarget
-
execute
-