-
- All Known Implementing Classes:
MdcBackgroundExecutorWrapper
public interface BackgroundExecutorWrapperBackgroundExecutorWrapper that can be used to wrap tasks that are sent to background (i.e. another thread). It should copy all necessary thread-local variables. SeeMdcBackgroundExecutorWrapperfor implementation details.- Author:
- Roland Praml, FOCONIS AG
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BackgroundExecutorWrapperwith(BackgroundExecutorWrapper inner)Combines two wrappers by nesting them.Runnablewrap(Runnable task)Wrap the task with MDC context if defined.<T> Callable<T>wrap(Callable<T> task)Wrap the task with MDC context if defined.
-
-
-
Method Detail
-
with
default BackgroundExecutorWrapper with(BackgroundExecutorWrapper inner)
Combines two wrappers by nesting them.
-
-