public interface ReactiveExecutor
Modifier and Type | Method and Description |
---|---|
default void |
callback(AsyncCallback callback)
Schedules the callback to be run
|
boolean |
executeFromQueue()
Executes the next task (if supported by the reactive executor implementation)
|
default void |
schedule(Runnable runnable)
Schedules the task to be run
|
void |
schedule(Runnable runnable,
String description)
Schedules the task to be run
|
default void |
scheduleMain(Runnable runnable)
Schedules the task to be prioritized and run asap
|
void |
scheduleMain(Runnable runnable,
String description)
Schedules the task to be prioritized and run asap
|
default void |
scheduleSync(Runnable runnable)
Schedules the task to run synchronously
|
void |
scheduleSync(Runnable runnable,
String description)
Schedules the task to run synchronously
|
default void schedule(Runnable runnable)
runnable
- the taskvoid schedule(Runnable runnable, String description)
runnable
- the taskdescription
- a human readable description for logging purposedefault void scheduleMain(Runnable runnable)
runnable
- the taskvoid scheduleMain(Runnable runnable, String description)
runnable
- the taskdescription
- a human readable description for logging purposedefault void scheduleSync(Runnable runnable)
runnable
- the taskvoid scheduleSync(Runnable runnable, String description)
runnable
- the taskdescription
- a human readable description for logging purposeboolean executeFromQueue()
default void callback(AsyncCallback callback)
callback
- the callableApache Camel