Package | Description |
---|---|
org.apache.sling.commons.scheduler |
Modifier and Type | Method and Description |
---|---|
ScheduleOptions |
Scheduler.AT(java.util.Date date)
Create a schedule options to fire a job once at a specific date.
|
ScheduleOptions |
Scheduler.AT(java.util.Date date,
int times,
long period)
Create a schedule options to fire a job period starting at a specific date.
|
ScheduleOptions |
ScheduleOptions.canRunConcurrently(boolean flag)
Flag indicating whether the job can be run concurrently.
|
ScheduleOptions |
ScheduleOptions.config(java.util.Map<java.lang.String,java.io.Serializable> config)
Add optional configuration for the job.
|
ScheduleOptions |
Scheduler.EXPR(java.lang.String expression)
Create a schedule options to schedule the job based on the expression.
|
ScheduleOptions |
ScheduleOptions.name(java.lang.String name)
Sets the name of the job.
|
ScheduleOptions |
Scheduler.NOW()
Create a schedule options to fire a job immediately and only once.
|
ScheduleOptions |
Scheduler.NOW(int times,
long period)
Create a schedule options to fire a job immediately more than once.
|
ScheduleOptions |
ScheduleOptions.onInstancesOnly(java.lang.String[] slingIds)
List of Sling IDs this job should be run on.
|
ScheduleOptions |
ScheduleOptions.onLeaderOnly(boolean flag)
Flag indicating whether the job should only be run on the leader.
|
ScheduleOptions |
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 |
ScheduleOptions.threadPoolName(java.lang.String name)
Define the thread pool to be used.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Scheduler.schedule(java.lang.Object job,
ScheduleOptions options)
Schedule a job based on the options.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.