-
- All Known Subinterfaces:
MainStage
- All Known Implementing Classes:
AgentModel
,AgentNode
,MetaEdgeAgent
,MetaHostAgent
,MetaLaneAgent
,MetaMeshAgent
,MetaPartAgent
,SideStage
,Theater
public interface Stage extends Executor, Schedule
An execution context in which to schedule tasks, create continuation calls, and set timers.Stage
is thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Call<T>
call(Cont<T> cont)
Returns aCall
that completes thecont
inuation.void
execute(Runnable runnable)
Schedules arunnable
for concurrent execution.TaskRef
task(TaskFunction task)
Returns an uncuedTaskRef
bound to thetask
, which can later be used to cue thetask
.
-
-
-
Method Detail
-
task
TaskRef task(TaskFunction task)
Returns an uncuedTaskRef
bound to thetask
, which can later be used to cue thetask
.
-
-