Class SideStage

  • All Implemented Interfaces:
    Executor, Schedule, Stage

    public class SideStage
    extends Object
    implements Stage
    Stage wrapper that prevents its underlying stage from being started and stopped.
    • Field Detail

      • stage

        protected final Stage stage
    • Constructor Detail

      • SideStage

        public SideStage​(Stage stage)
    • Method Detail

      • execute

        public void execute​(Runnable runnable)
        Description copied from interface: Stage
        Schedules a runnable for concurrent execution.
        Specified by:
        execute in interface Executor
        Specified by:
        execute in interface Stage
      • task

        public TaskRef task​(TaskFunction task)
        Description copied from interface: Stage
        Returns an uncued TaskRef bound to the task, which can later be used to cue the task.
        Specified by:
        task in interface Stage
      • call

        public <T> Call<T> call​(Cont<T> cont)
        Description copied from interface: Stage
        Returns a Call that completes the continuation.
        Specified by:
        call in interface Stage
      • timer

        public TimerRef timer​(TimerFunction timer)
        Description copied from interface: Schedule
        Returns an unscheduled TimerRef bound to timer, which can later be used to schedule timer.
        Specified by:
        timer in interface Schedule
      • setTimer

        public TimerRef setTimer​(long millis,
                                 TimerFunction timer)
        Description copied from interface: Schedule
        Schedules timer to execute after millis milliseconds have elapsed. Returns a TimerRef that can be used to check the status of, reschedule, and cancel timer.
        Specified by:
        setTimer in interface Schedule