public class InternalScheduleOptions extends Object implements ScheduleOptions
| Modifier and Type | Field and Description |
|---|---|
IllegalArgumentException |
argumentException |
boolean |
canRunConcurrently |
Map<String,Serializable> |
configuration |
String |
name |
String[] |
runOn |
org.quartz.TriggerBuilder<? extends org.quartz.Trigger> |
trigger |
| Constructor and Description |
|---|
InternalScheduleOptions(IllegalArgumentException iae) |
InternalScheduleOptions(org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ScheduleOptions |
name(String name)
Sets the name of the job.
|
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.
|
public String name
public boolean canRunConcurrently
public Map<String,Serializable> configuration
public final org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger
public final IllegalArgumentException argumentException
public String[] runOn
public InternalScheduleOptions(org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger)
public InternalScheduleOptions(IllegalArgumentException iae)
public ScheduleOptions config(Map<String,Serializable> config)
ScheduleOptionsconfig in interface ScheduleOptionsconfig - An optional configuration object - this configuration is only passed to the job the job implements Job.ScheduleOptions.config(java.util.Map)public ScheduleOptions name(String name)
ScheduleOptionsname in interface ScheduleOptionsname - The job nameScheduleOptions.name(java.lang.String)public ScheduleOptions canRunConcurrently(boolean flag)
ScheduleOptionscanRunConcurrently in interface ScheduleOptionsflag - Whether this job can run even if previous scheduled runs are still running.ScheduleOptions.canRunConcurrently(boolean)public ScheduleOptions onLeaderOnly(boolean flag)
ScheduleOptionsScheduleOptions.onSingleInstanceOnly(boolean) or ScheduleOptions.onInstancesOnly(String[]) has been called before,
that option is reset and overwritten by the value of this method.onLeaderOnly in interface ScheduleOptionsflag - Whether this job should only be run on the leaderScheduleOptions.onLeaderOnly(boolean)public ScheduleOptions onSingleInstanceOnly(boolean flag)
ScheduleOptionsScheduleOptions.onLeaderOnly(boolean) or ScheduleOptions.onInstancesOnly(String[]) has been called before,
that option is reset and overwritten by the value of this method.onSingleInstanceOnly in interface ScheduleOptionsflag - Whether this job should only be run on a single instance.ScheduleOptions.onSingleInstanceOnly(boolean)public ScheduleOptions onInstancesOnly(String[] slingIds)
ScheduleOptionsScheduleOptions.onLeaderOnly(boolean) or ScheduleOptions.onSingleInstanceOnly(boolean) has been called before,
that option is reset and overwritten by the value of this method.onInstancesOnly in interface ScheduleOptionsslingIds - Array of Sling IDs this job should run onScheduleOptions.onInstancesOnly(java.lang.String[])Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.