Class EventLoopsScheduler

    • Constructor Detail

      • EventLoopsScheduler

        public EventLoopsScheduler()
        Create a scheduler with pool size equal to the available processor count and using least-recent worker selection policy.
    • Method Detail

      • start

        public void start()
        Description copied from interface: SchedulerLifecycle
        Allows the Scheduler instance to start threads and accept tasks on them.

        Implementations should make sure the call is idempotent and threadsafe.

      • shutdown

        public void shutdown()
        Description copied from interface: SchedulerLifecycle
        Instructs the Scheduler instance to stop threads and stop accepting tasks on any outstanding Workers.

        Implementations should make sure the call is idempotent and threadsafe.

      • scheduleDirect

        public Subscription scheduleDirect(Action0 action)
        Schedules the action directly on one of the event loop workers without the additional infrastructure and checking.
        Parameters:
        action - the action to schedule
        Returns:
        the subscription