Class FunctionLoopImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.job.FunctionLoopImpl
-
- All Implemented Interfaces:
FunctionLoop
public class FunctionLoopImpl extends java.lang.Object implements FunctionLoop
FunctionLoop
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FunctionLoopImpl(TeamManagement defaultTeam)
Instantiates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delegateFunction(FunctionState function)
Delegates theFunctionState
to the appropriateTeam
to execute.void
executeFunction(FunctionState function)
Executes theFunctionState
within the currentThread
.
-
-
-
Constructor Detail
-
FunctionLoopImpl
public FunctionLoopImpl(TeamManagement defaultTeam)
Instantiates.- Parameters:
defaultTeam
- DefaultTeamManagement
. May benull
.
-
-
Method Detail
-
executeFunction
public void executeFunction(FunctionState function)
Description copied from interface:FunctionLoop
Executes theFunctionState
within the currentThread
.- Specified by:
executeFunction
in interfaceFunctionLoop
- Parameters:
function
-FunctionState
to execute.
-
delegateFunction
public void delegateFunction(FunctionState function)
Description copied from interface:FunctionLoop
Delegates theFunctionState
to the appropriateTeam
to execute.- Specified by:
delegateFunction
in interfaceFunctionLoop
- Parameters:
function
-FunctionState
to delegate to aTeam
.
-
-