Class ThreadLocalAwareExecutorImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.officefloor.ThreadLocalAwareExecutorImpl
-
- All Implemented Interfaces:
ThreadLocalAwareExecutor
public class ThreadLocalAwareExecutorImpl extends java.lang.Object implements ThreadLocalAwareExecutor
ThreadLocalAwareExecutorimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalAwareExecutorImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public void runInContext(FunctionState function, FunctionLoop loop)
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
public void execute(Job job)
Description copied from interface:ThreadLocalAwareExecutor- Specified by:
executein interfaceThreadLocalAwareExecutor- Parameters:
job-Job.
-
processComplete
public void processComplete(ProcessState processState)
Description copied from interface:ThreadLocalAwareExecutorFlags theProcessStateas complete.- Specified by:
processCompletein interfaceThreadLocalAwareExecutor- Parameters:
processState-ProcessState.
-
-