public class TimeoutGuardTask extends Object implements 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)
|
public TimeoutGuardTask(@NotNull MdcContext mdcContext, SharedTaskContext sharedTaskContext)
mdcContext
- The Logging context to set