Interface ReactiveExecutor


  • public interface ReactiveExecutor
    SPI to plugin different reactive engines in the Camel routing engine.
    • Method Detail

      • schedule

        void schedule​(Runnable runnable)
        Schedules the task to be run (fairly)
        Parameters:
        runnable - the task
      • scheduleMain

        void scheduleMain​(Runnable runnable)
        Schedules the task to be prioritized and run asap
        Parameters:
        runnable - the task
      • scheduleSync

        void scheduleSync​(Runnable runnable)
        Schedules the task to run synchronously (current thread)
        Parameters:
        runnable - the task
      • executeFromQueue

        boolean executeFromQueue()
        Executes the next task (if supported by the reactive executor implementation)
        Returns:
        true if a task was executed or false if no more pending tasks