@FunctionalInterface public interface CronTask
CronScheduler.| Modifier and Type | Method and Description |
|---|---|
void |
run(long scheduledRunTimeMillis)
Runs the periodic task.
|
void run(long scheduledRunTimeMillis) throws Exception
Periodic calls to this method from CronScheduler are not guaranteed to
progress in scheduledRunTimeMillis in the face of backward time shifts. See the
class-level documentation of CronScheduler for more details.
scheduledRunTimeMillis - the nominal time in milliseconds when this method should have
been run.Exception - if unable to run the task