Package org.hawaiiframework.async
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
- Author:
- Rutger Lubbers, Paul Klos
-
-
Field Summary
-
Fields inherited from class org.hawaiiframework.async.HawaiiAsyncRunnable
sharedTaskContext
-
-
Constructor Summary
Constructors Constructor Description AbortableTaskRunnable(@NotNull Runnable delegate, @NotNull SharedTaskContext sharedTaskContext)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRun()
This method is executed byRunnable
run.-
Methods inherited from class org.hawaiiframework.async.HawaiiAsyncRunnable
run
-
-
-
-
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 byRunnable
run. Run executes all administrative calls. Code specified in this method will be executed in between those calls.- Specified by:
doRun
in classHawaiiAsyncRunnable
-
-