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,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 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 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 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
-