Class SpawnThreadFunctionLogic
- java.lang.Object
-
- net.officefloor.frame.impl.execute.function.SpawnThreadFunctionLogic
-
- All Implemented Interfaces:
FunctionLogic
public class SpawnThreadFunctionLogic extends java.lang.Object implements FunctionLogic
FunctionLogic
to spawn aThreadState
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SpawnThreadFunctionLogic(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCompletion completion, ThreadState currentThreadState)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionState
execute(Flow flow)
Executes the logic.boolean
isRequireThreadStateSafety()
Indicates if theFunctionLogic
requiresThreadState
safety.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.internal.structure.FunctionLogic
getResponsibleTeam
-
-
-
-
Constructor Detail
-
SpawnThreadFunctionLogic
public SpawnThreadFunctionLogic(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCompletion completion, ThreadState currentThreadState)
Instantiate.- Parameters:
flowMetaData
-FlowMetaData
.parameter
- Parameter for the initialManagedFunction
of theFlow
.completion
- OptionalFlowCompletion
.currentThreadState
- CurrentThreadState
.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isRequireThreadStateSafety
public boolean isRequireThreadStateSafety()
Description copied from interface:FunctionLogic
Indicates if theFunctionLogic
requiresThreadState
safety.- Specified by:
isRequireThreadStateSafety
in interfaceFunctionLogic
- Returns:
true
shouldFunctionLogic
requireThreadState
safety.
-
execute
public FunctionState execute(Flow flow)
Description copied from interface:FunctionLogic
Executes the logic.- Specified by:
execute
in interfaceFunctionLogic
- Parameters:
flow
-Flow
that contains thisFunctionLogic
.- Returns:
- Optional
FunctionState
to execute next.
-
-