Package | Description |
---|---|
org.apache.sling.commons.scheduler | |
org.apache.sling.commons.scheduler.impl |
Modifier and Type | Method and Description |
---|---|
ScheduleOptions |
Scheduler.AT(Date date)
Create a schedule options to fire a job once at a specific date
|
ScheduleOptions |
Scheduler.AT(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(Map<String,Serializable> config)
Add optional configuration for the job.
|
ScheduleOptions |
Scheduler.EXPR(String expression)
Create a schedule options to schedule the job based on the expression
|
ScheduleOptions |
ScheduleOptions.name(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(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Scheduler.schedule(Object job,
ScheduleOptions options)
Schedule a job based on the options.
|
Modifier and Type | Class and Description |
---|---|
class |
InternalScheduleOptions
Scheduler options provide an extensible way of defining how to schedule a job.
|
Modifier and Type | Method and Description |
---|---|
ScheduleOptions |
SchedulerServiceFactory.AT(Date date) |
ScheduleOptions |
QuartzScheduler.AT(Date date) |
ScheduleOptions |
SchedulerServiceFactory.AT(Date date,
int times,
long period) |
ScheduleOptions |
QuartzScheduler.AT(Date date,
int times,
long period) |
ScheduleOptions |
InternalScheduleOptions.canRunConcurrently(boolean flag) |
ScheduleOptions |
InternalScheduleOptions.config(Map<String,Serializable> config) |
ScheduleOptions |
SchedulerServiceFactory.EXPR(String expression) |
ScheduleOptions |
QuartzScheduler.EXPR(String expression) |
ScheduleOptions |
InternalScheduleOptions.name(String name) |
ScheduleOptions |
SchedulerServiceFactory.NOW() |
ScheduleOptions |
QuartzScheduler.NOW() |
ScheduleOptions |
SchedulerServiceFactory.NOW(int times,
long period) |
ScheduleOptions |
QuartzScheduler.NOW(int times,
long period) |
ScheduleOptions |
InternalScheduleOptions.onInstancesOnly(String[] slingIds) |
ScheduleOptions |
InternalScheduleOptions.onLeaderOnly(boolean flag) |
ScheduleOptions |
InternalScheduleOptions.onSingleInstanceOnly(boolean flag) |
Modifier and Type | Method and Description |
---|---|
boolean |
QuartzScheduler.schedule(Long bundleId,
Long serviceId,
Object job,
ScheduleOptions options) |
boolean |
SchedulerServiceFactory.schedule(Object job,
ScheduleOptions options) |
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.