- java.lang.Object
-
- io.ebean.config.MdcBackgroundExecutorWrapper
-
- All Implemented Interfaces:
BackgroundExecutorWrapper
public final class MdcBackgroundExecutorWrapper extends Object implements BackgroundExecutorWrapper
Propagates MDC context for tasks executed in the background.
-
-
Constructor Summary
Constructors Constructor Description MdcBackgroundExecutorWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebean.config.BackgroundExecutorWrapper
with
-
-
-
-
Method Detail
-
wrap
public <T> Callable<T> wrap(Callable<T> task)
Wrap the task with MDC context if defined.- Specified by:
wrapin interfaceBackgroundExecutorWrapper
-
wrap
public Runnable wrap(Runnable task)
Wrap the task with MDC context if defined.- Specified by:
wrapin interfaceBackgroundExecutorWrapper
-
-