public interface Scheduler
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPaused()
Is scheduler paused.
|
boolean |
isStarted()
Is scheduler started.
|
void |
pause()
Pause scheduler elements.
|
void |
resume()
Resume scheduler elements.
|
void |
schedule(long interval)
Configure scheduler with new schedule based on repeat interval, paused scheduler resume it's work with new schedule.
|
void |
schedule(String schedule)
Configure scheduler with new schedule based on cron configuration, paused scheduler resume it's work with new schedule.
|
void |
tearDown()
Stop scheduler, future use of this instance is not possible after this action.
|
void pause()
throws SchedulerException
SchedulerExceptionvoid resume()
throws SchedulerException
SchedulerExceptionboolean isStarted()
throws SchedulerException
SchedulerExceptionboolean isPaused()
throws SchedulerException
SchedulerExceptionvoid schedule(String schedule) throws SchedulerException
schedule - cron based scheduleSchedulerExceptionvoid schedule(long interval)
throws SchedulerException
interval - repeat interval in millisecondsSchedulerExceptionvoid tearDown()
Copyright © 2013–2019 BB Corp. All rights reserved.