Notifies a reactor frame that it should be executed.
Notifies a reactor frame that it should be executed. Clients never call this method directly.
This method uses the reactor frame to flush messages from its event queue and propagate events through the reactor.
the reactor frame to schedule
Tells the scheduler to start listening to schedule requests for the reactor frame.
Tells the scheduler to start listening to schedule requests for the reactor frame. Clients never call this method directly.
By default, assigns the default scheduler state to the schedulerState
field in
the reactor frame.
the reactor frame to start scheduling
Creates an State
object for the reactor frame.
Creates an State
object for the reactor frame.
the reactor frame
creates a fresh scheduler info object
Called immediately after a reactor frame completes an execution batch.
Called immediately after a reactor frame completes an execution batch.
Optionally unschedules and runs some number of frames previously scheduled.
This method by default does nothing, but may be overridden for performance purposes.
Called immediately before a reactor frame begins an execution batch.
An object that schedules reactors for execution.
After a reactor is instantiated, its reactor frame is assigned a scheduler by the reactor system. A reactor that is assigned a specific scheduler will always be executed on that same scheduler.
After creating a reactor, every reactor system will first call the
initSchedule
method on the reactor frame. Then, the reactor system will call theschedule
method every time there are events ready for the reactor.Note: Clients never invoke
Scheduler
operations directly, but can implement their own scheduler if necessary.org.reactors.ReactorSystem