Class AbortableTaskRunnable

  • All Implemented Interfaces:
    Runnable

    public class AbortableTaskRunnable
    extends HawaiiAsyncRunnable
    Delegating Runnable that copies the MDC to the executing thread before running the delegate.
    Since:
    2.0.0
    Author:
    Rutger Lubbers, Paul Klos
    • Constructor Detail

      • AbortableTaskRunnable

        public AbortableTaskRunnable​(@NotNull
                                     @NotNull Runnable delegate,
                                     @NotNull
                                     @NotNull SharedTaskContext sharedTaskContext)
        Construct a new instance.
        Parameters:
        delegate - the delegate to run.
        sharedTaskContext - the abort strategy to set.
    • Method Detail

      • doRun

        protected void doRun()
        This method is executed by Runnable run. Run executes all administrative calls. Code specified in this method will be executed in between those calls.
        Specified by:
        doRun in class HawaiiAsyncRunnable