Class ContextPropagatingScheduledExecutorService
java.lang.Object
io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService
io.micronaut.context.propagation.instrument.execution.ContextPropagatingScheduledExecutorService
- All Implemented Interfaces:
InstrumentedExecutor, InstrumentedExecutorService, InstrumentedScheduledExecutorService, RunnableInstrumenter, AutoCloseable, Executor, ExecutorService, ScheduledExecutorService
@Internal
public class ContextPropagatingScheduledExecutorService
extends ContextPropagatingExecutorService
implements InstrumentedScheduledExecutorService
Wraps
ScheduledExecutorService to instrument it for propagating the PropagatedContext
across threads.- Since:
- 4.9.0
- Author:
- Hauke Lange
-
Constructor Summary
ConstructorsConstructorDescriptionContextPropagatingScheduledExecutorService(ScheduledExecutorService target, @Nullable PropagatedContext propagatedContext) -
Method Summary
Modifier and TypeMethodDescriptionImplementors can override to specify the targetExecutorService.Methods inherited from class ContextPropagatingExecutorService
instrument, instrument, isInstrumented, unwrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExecutorService
closeMethods inherited from interface InstrumentedExecutor
executeMethods inherited from interface InstrumentedExecutorService
awaitTermination, instrument, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from interface InstrumentedScheduledExecutorService
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelayMethods inherited from interface RunnableInstrumenter
instrument
-
Constructor Details
-
ContextPropagatingScheduledExecutorService
-
ContextPropagatingScheduledExecutorService
public ContextPropagatingScheduledExecutorService(ScheduledExecutorService target, @Nullable PropagatedContext propagatedContext)
-
-
Method Details
-
getTarget
Description copied from interface:InstrumentedExecutorServiceImplementors can override to specify the targetExecutorService.- Specified by:
getTargetin interfaceInstrumentedExecutor- Specified by:
getTargetin interfaceInstrumentedExecutorService- Specified by:
getTargetin interfaceInstrumentedScheduledExecutorService- Overrides:
getTargetin classContextPropagatingExecutorService- Returns:
- The target
ExecutorService
-