I have implemented a job as described here:
https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html
@Component(immediate = true)
@Service(value = JobConsumer.class)
@Property(name = JobConsumer.PROPERTY_TOPICS, value =
ImageManagerUploadJob.JOB_TOPIC)
public final class ImageManagerUploadJob implements JobConsumer
{
I wish to have this Job handled by a custom queue that processes jobs
sequentially, i.e. on a single thread. Forgive my densitude but I'm not
understanding how/where to apply the properties given on that documentation
page. It sounds like I define a queue and then associate the job with it? I
haven't been able to find an example of this. I'd like this all to be in code
so it always works without tinkering with stuff in the OSGi container. Thanks!