Uses of Interface
org.apache.sling.commons.scheduler.ScheduleOptions
Packages that use ScheduleOptions
-
Uses of ScheduleOptions in org.apache.sling.commons.scheduler
Methods in org.apache.sling.commons.scheduler that return ScheduleOptionsModifier and TypeMethodDescriptionCreate a schedule options to fire a job once at a specific date.Create a schedule options to fire a job period starting at a specific date.ScheduleOptions.canRunConcurrently(boolean flag) Flag indicating whether the job can be run concurrently.ScheduleOptions.config(Map<String, Serializable> config) Add optional configuration for the job.Create a schedule options to schedule the job based on the expression.Sets the name of the job.Scheduler.NOW()Create a schedule options to fire a job immediately and only once.Scheduler.NOW(int times, long period) Create a schedule options to fire a job immediately more than once.ScheduleOptions.onInstancesOnly(String[] slingIds) List of Sling IDs this job should be run on.ScheduleOptions.onLeaderOnly(boolean flag) Flag indicating whether the job should only be run on the leader.ScheduleOptions.onSingleInstanceOnly(boolean flag) Flag indicating whether the job should only be run on a single instance in a cluster This defaults to false.ScheduleOptions.threadPoolName(String name) Define the thread pool to be used.Methods in org.apache.sling.commons.scheduler with parameters of type ScheduleOptionsModifier and TypeMethodDescriptionbooleanScheduler.schedule(Object job, ScheduleOptions options) Schedule a job based on the options.