Class ContextPropagatingScheduledExecutorService
java.lang.Object
io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService
io.micronaut.context.propagation.instrument.execution.ContextPropagatingScheduledExecutorService
- All Implemented Interfaces:
io.micronaut.scheduling.instrument.InstrumentedExecutor,io.micronaut.scheduling.instrument.InstrumentedExecutorService,io.micronaut.scheduling.instrument.InstrumentedScheduledExecutorService,io.micronaut.scheduling.instrument.RunnableInstrumenter,AutoCloseable,Executor,ExecutorService,ScheduledExecutorService
@Internal
public class ContextPropagatingScheduledExecutorService
extends ContextPropagatingExecutorService
implements io.micronaut.scheduling.instrument.InstrumentedScheduledExecutorService
Wraps
ScheduledExecutorService to instrument it for propagating the PropagatedContext
across threads.- Since:
- 4.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionContextPropagatingScheduledExecutorService(ScheduledExecutorService target, @Nullable io.micronaut.core.propagation.PropagatedContext propagatedContext) -
Method Summary
Methods inherited from class io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService
instrument, instrument, isInstrumented, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
closeMethods inherited from interface io.micronaut.scheduling.instrument.InstrumentedExecutor
executeMethods inherited from interface io.micronaut.scheduling.instrument.InstrumentedExecutorService
awaitTermination, instrument, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from interface io.micronaut.scheduling.instrument.InstrumentedScheduledExecutorService
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelayMethods inherited from interface io.micronaut.scheduling.instrument.RunnableInstrumenter
instrument
-
Constructor Details
-
ContextPropagatingScheduledExecutorService
-
ContextPropagatingScheduledExecutorService
public ContextPropagatingScheduledExecutorService(ScheduledExecutorService target, @Nullable @Nullable io.micronaut.core.propagation.PropagatedContext propagatedContext)
-
-
Method Details
-
getTarget
- Specified by:
getTargetin interfaceio.micronaut.scheduling.instrument.InstrumentedExecutor- Specified by:
getTargetin interfaceio.micronaut.scheduling.instrument.InstrumentedExecutorService- Specified by:
getTargetin interfaceio.micronaut.scheduling.instrument.InstrumentedScheduledExecutorService- Overrides:
getTargetin classContextPropagatingExecutorService
-