Package sonia.scm.schedule
Interface Scheduler
- All Superinterfaces:
AutoCloseable,Closeable
Scheduler is able to run tasks on the future in a background thread. Task can be scheduled with cron like expression.
Note: Task are always executed in an administrative context.
- Since:
- 1.47
-
Method Summary
-
Method Details
-
schedule
Schedule a new task for future execution.- Parameters:
expression- cron expressionrunnable- action- Returns:
- cancelable task
-
schedule
Schedule a new task for future execution. The method will create a new instance of the runnable for every execution. The runnable can use injection.- Parameters:
expression- cron expressionrunnable- action class- Returns:
- cancelable task
-