Interface ReactiveExecutor


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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Service factory key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Executes the next task (if supported by the reactive executor implementation)
    boolean
    Whether statistics is enabled
    void
    schedule(Runnable runnable)
    Schedules the task to be run (fairly)
    void
    Schedules the task to be prioritized and run asap
    void
    Schedules the task to be run later from the queue (current thread) This is used for routing Exchange using transactions.
    void
    Schedules the task to run synchronously (current thread)
    void
    setStatisticsEnabled(boolean statisticsEnabled)
    To enable statistics
  • Field Details

  • Method Details

    • 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
    • scheduleQueue

      void scheduleQueue(Runnable runnable)
      Schedules the task to be run later from the queue (current thread) This is used for routing Exchange using transactions.
      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
    • setStatisticsEnabled

      void setStatisticsEnabled(boolean statisticsEnabled)
      To enable statistics
    • isStatisticsEnabled

      boolean isStatisticsEnabled()
      Whether statistics is enabled