org.apache.sling.event.jobs
Interface JobProcessor

All Known Subinterfaces:
JobProcessor

public interface JobProcessor

A job processor processes a job in the background. It is used by JobUtil.processJob(Event, JobProcessor).

Since:
3.0

Method Summary
 boolean process(org.osgi.service.event.Event job)
          Execute the job.
 

Method Detail

process

boolean process(org.osgi.service.event.Event job)
Execute the job. If the job fails with a thrown exception/throwable, the process will not be rescheduled.

Parameters:
job - The event containing the job description.
Returns:
True if the job could be finished (either successful or by an error). Return false if the job should be rescheduled.


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.