Hi Carl,

Carl Hall schrieb:
> Would someone point me to some docs on the job scheduler in Sling or
> to some code I can use as an example?


The basic documentation is at the end of this page:
http://sling.apache.org/site/eventing-and-jobs.html.

Scheduling a job is rather easy: Either you get the SchedulerService and
call the addJob method. Or you register a java.lang.Runnable service
setting either the "scheduler.expression" service property being the
Crontab style schedule or the "scheduler.period" service property
specifying the scheduling period.

More information is provided in the Scheduler API doc [1].

Hope this helps.

Regards
Felix

[1]
http://sling.apache.org/apidocs/sling5/org/apache/sling/commons/scheduler/Scheduler.html

Reply via email to