Class SpawnThreadFunctionLogic
java.lang.Object
net.officefloor.frame.impl.execute.function.SpawnThreadFunctionLogic
- All Implemented Interfaces:
FunctionLogic
FunctionLogic to spawn a ThreadState.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionSpawnThreadFunctionLogic(FlowMetaData flowMetaData, Object parameter, FlowCompletion completion, ThreadState currentThreadState) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionExecutes the logic.booleanIndicates if theFunctionLogicrequiresThreadStatesafety.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.officefloor.frame.internal.structure.FunctionLogic
getResponsibleTeam
-
Constructor Details
-
SpawnThreadFunctionLogic
public SpawnThreadFunctionLogic(FlowMetaData flowMetaData, Object parameter, FlowCompletion completion, ThreadState currentThreadState) Instantiate.- Parameters:
flowMetaData-FlowMetaData.parameter- Parameter for the initialManagedFunctionof theFlow.completion- OptionalFlowCompletion.currentThreadState- CurrentThreadState.
-
-
Method Details
-
toString
-
isRequireThreadStateSafety
public boolean isRequireThreadStateSafety()Description copied from interface:FunctionLogicIndicates if theFunctionLogicrequiresThreadStatesafety.- Specified by:
isRequireThreadStateSafetyin interfaceFunctionLogic- Returns:
trueshouldFunctionLogicrequireThreadStatesafety.
-
execute
Description copied from interface:FunctionLogicExecutes the logic.- Specified by:
executein interfaceFunctionLogic- Parameters:
flow-Flowthat contains thisFunctionLogic.- Returns:
- Optional
FunctionStateto execute next.
-