Interface ThreadLocalAwareExecutor
- All Known Implementing Classes:
ThreadLocalAwareExecutorImpl
public interface ThreadLocalAwareExecutor
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprocessComplete(ProcessState processState) Flags theProcessStateas complete.voidrunInContext(FunctionState function, FunctionLoop loop) Runs theProcessStatewithin context to enable theThreadLocalinstances of the currentThreadto be available.
-
Method Details
-
runInContext
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.
-
execute
- Parameters:
job-Job.
-
processComplete
Flags theProcessStateas complete.- Parameters:
processState-ProcessState.
-