Class AbortableTaskRunnable

java.lang.Object
org.hawaiiframework.async.HawaiiAsyncRunnable
org.hawaiiframework.async.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
  • Constructor Details

    • AbortableTaskRunnable

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

    • doRun

      protected void doRun()
      Description copied from class: HawaiiAsyncRunnable
      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