import org.osgi.service.component.annotations.Component;
import org.apache.sling.event.jobs.Job;
import org.apache.sling.event.jobs.consumer.JobConsumer;
@component(service=JobConsumer.class, property= {
JobConsumer.PROPERTY_TOPICS + "=my/special/jobtopic"
})
public class MyJobConsumer implements JobConsumer {
public JobResult process(final Job job) {
String path = job.getProperty("path");
return JobResult.OK;
}
}