public class ContextPropagatingExecutor extends WrappingExecutor
| Constructor and Description |
|---|
ContextPropagatingExecutor(Executor delegate,
Iterable<? extends ContextPropagator<?>> propagators)
Constructs a new context propagating executor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Runnable |
wrap(Runnable r)
Wraps the given task.
|
delegate, executepublic ContextPropagatingExecutor(Executor delegate, Iterable<? extends ContextPropagator<?>> propagators)
delegate - the underlying executor, for executing taskspropagators - objects that manage and propagate context for each task submissionprotected final Runnable wrap(Runnable r)
WrappingExecutorwrap in class WrappingExecutorr - a task