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, execute
public 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)
WrappingExecutor
wrap
in class WrappingExecutor
r
- a task