-
- All Known Subinterfaces:
Task
- All Known Implementing Classes:
AbstractTask,AgentModel,AgentNode,MetaEdgeAgent,MetaHostAgent,MetaLaneAgent,MetaMeshAgent,MetaPartAgent
public interface TaskFunctionFunction to invoke as a sequential process on a concurrent executionStage. UseStage.task(TaskFunction)to bind aTaskFunctionto aStage, and invokeTaskRef.cue()to schedule the concurrent execution of the sequential task.Blocking
TaskFunctionimplementations should not perform long running or blocking operations. If a blocking operation needs to be performed, implement aTaskthat returnstruefromtaskWillBlock()to avoid thread starvation of the executionStage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrunTask()Executes this sequential process.
-