public class TimeoutGuardTask
extends java.lang.Object
implements java.lang.Runnable
We first try to remove the scheduled task from the executor, so it will not be executed. If this fails we will try to abort the scheduled tasks.
For this the guarded task must register it's TaskAbortStrategy
in the SharedTaskContext
.
Constructor and Description |
---|
TimeoutGuardTask(MdcContext mdcContext,
SharedTaskContext sharedTaskContext)
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
public TimeoutGuardTask(@NotNull MdcContext mdcContext, SharedTaskContext sharedTaskContext)
mdcContext
- The Logging context to set