public interface ReactiveExecutor
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY
Service factory key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
executeFromQueue()
Executes the next task (if supported by the reactive executor implementation)
|
boolean |
isStatisticsEnabled()
Whether statistics is enabled
|
void |
schedule(Runnable runnable)
Schedules the task to be run (fairly)
|
void |
scheduleMain(Runnable runnable)
Schedules the task to be prioritized and run asap
|
void |
scheduleQueue(Runnable runnable)
Schedules the task to be run later from the queue (current thread)
This is used for routing
Exchange using transactions. |
void |
scheduleSync(Runnable runnable)
Schedules the task to run synchronously (current thread)
|
void |
setStatisticsEnabled(boolean statisticsEnabled)
To enable statistics
|
static final String FACTORY
void schedule(Runnable runnable)
runnable
- the taskvoid scheduleMain(Runnable runnable)
runnable
- the taskvoid scheduleSync(Runnable runnable)
runnable
- the taskvoid scheduleQueue(Runnable runnable)
Exchange
using transactions.runnable
- the taskboolean executeFromQueue()
void setStatisticsEnabled(boolean statisticsEnabled)
boolean isStatisticsEnabled()
Apache Camel