Interface JobProcessor

public interface JobProcessor

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

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

Method Detail


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.

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

Copyright © 2007-2009. All Rights Reserved.