Package org.hawaiiframework.async
Class HawaiiAsyncRunnable
- java.lang.Object
-
- org.hawaiiframework.async.HawaiiAsyncRunnable
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AbortableTaskRunnable
,TimeoutGuardTask
public abstract class HawaiiAsyncRunnable extends Object implements Runnable
This class will handle all administrative calls which need to be done for every call.- Author:
- Richard Kohlen
-
-
Field Summary
Fields Modifier and Type Field Description protected SharedTaskContext
sharedTaskContext
The abort strategy to set on the executing thread's ThreadLocalSharedTaskContextHolder
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
HawaiiAsyncRunnable(SharedTaskContext sharedTaskContext)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doRun()
This method is executed byRunnable
run.void
run()
-
-
-
Field Detail
-
sharedTaskContext
protected final SharedTaskContext sharedTaskContext
The abort strategy to set on the executing thread's ThreadLocalSharedTaskContextHolder
.
-
-
Constructor Detail
-
HawaiiAsyncRunnable
protected HawaiiAsyncRunnable(SharedTaskContext sharedTaskContext)
Constructor.- Parameters:
sharedTaskContext
- the context for the api call thread
-
-