public class AbortableTaskRunnable
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
AbortableTaskRunnable(MdcContext mdcContext,
java.lang.Runnable delegate,
SharedTaskContext sharedTaskContext)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
public AbortableTaskRunnable(@NotNull MdcContext mdcContext, @NotNull java.lang.Runnable delegate, @NotNull SharedTaskContext sharedTaskContext)
mdcContext
- the MDC context (of the calling thread).delegate
- the delegate to run.sharedTaskContext
- the abort strategy to set.