Class SynchroniseProcessStateFunctionLogic
- java.lang.Object
-
- net.officefloor.frame.impl.execute.function.SynchroniseProcessStateFunctionLogic
-
- All Implemented Interfaces:
FunctionLogic
public class SynchroniseProcessStateFunctionLogic extends java.lang.Object implements FunctionLogic
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SynchroniseProcessStateFunctionLogic(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
-
SynchroniseProcessStateFunctionLogic
public SynchroniseProcessStateFunctionLogic(ThreadState currentThreadState)
Instantiate.- Parameters:
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.
-
-