Interface ThreadLocalAwareExecutor
-
- All Known Implementing Classes:
ThreadLocalAwareExecutorImpl
public interface ThreadLocalAwareExecutor- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(Job job)voidprocessComplete(ProcessState processState)Flags theProcessStateas complete.voidrunInContext(FunctionState function, FunctionLoop loop)Runs theProcessStatewithin context to enable theThreadLocalinstances of the currentThreadto be available.
-
-
-
Method Detail
-
runInContext
void runInContext(FunctionState function, FunctionLoop loop)
Runs the
ProcessStatewithin context to enable theThreadLocalinstances of the currentThreadto be available.This will block the current
Threaduntil theProcessStateand all subsequentProcessStateinstances invoked by the currentThreadare complete.- Parameters:
function- InitialFunctionStateof theProcessState.loop-FunctionLoop.
-
processComplete
void processComplete(ProcessState processState)
Flags theProcessStateas complete.- Parameters:
processState-ProcessState.
-
-