Package | Description |
---|---|
org.apache.sling.event.jobs | |
org.apache.sling.event.jobs.consumer |
Modifier and Type | Method and Description |
---|---|
Job |
JobBuilder.add()
Add the job.
|
Job |
JobBuilder.add(List<String> errors)
Add the job.
|
Job |
JobManager.addJob(String topic,
Map<String,Object> properties)
Add a new job
If the topic is
null or illegal, no job is created and null is returned. |
Job |
JobManager.addJob(String topic,
String name,
Map<String,Object> properties)
Deprecated.
|
Job |
JobManager.getJob(String topic,
Map<String,Object> template)
Find a job - either scheduled or active.
|
Job |
JobManager.getJobById(String jobId)
Return a job based on the unique id.
|
Job |
JobManager.getJobByName(String name)
Deprecated.
|
Job |
JobManager.retryJobById(String jobId)
Retry a cancelled job.
|
Modifier and Type | Method and Description |
---|---|
Collection<Job> |
JobManager.findJobs(JobManager.QueryType type,
String topic,
long limit,
Map<String,Object>... templates)
Return all jobs of a given type.
|
Modifier and Type | Method and Description |
---|---|
JobConsumer.JobResult |
JobConsumer.process(Job job)
Execute the job.
|
JobExecutionResult |
JobExecutor.process(Job job,
JobExecutionContext context)
Execute the job.
|
Copyright © 2015 The Apache Software Foundation. All rights reserved.