Class ThreadLocalAwareExecutorImpl
java.lang.Object
net.officefloor.frame.impl.execute.officefloor.ThreadLocalAwareExecutorImpl
- All Implemented Interfaces:
ThreadLocalAwareExecutor
ThreadLocalAwareExecutor implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
ThreadLocalAwareExecutorImpl
public ThreadLocalAwareExecutorImpl()
-
-
Method Details
-
runInContext
Description copied from interface:ThreadLocalAwareExecutorRuns 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.- Specified by:
runInContextin interfaceThreadLocalAwareExecutor- Parameters:
function- InitialFunctionStateof theProcessState.loop-FunctionLoop.
-
execute
Description copied from interface:ThreadLocalAwareExecutor- Specified by:
executein interfaceThreadLocalAwareExecutor- Parameters:
job-Job.
-
processComplete
Description copied from interface:ThreadLocalAwareExecutorFlags theProcessStateas complete.- Specified by:
processCompletein interfaceThreadLocalAwareExecutor- Parameters:
processState-ProcessState.
-