|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicSpi public interface JobHandler
Implement this instead of SAL's PluginJob or atlassian-scheduler's JobRunner.
The model for this compatibility library differs from that of SAL's plugin
scheduler in that, like in the atlassian-scheduler API, you provide a
concrete instance of the worker class which is reused whenever the job is
invoked. Unlike the atlassian-scheduler API, you must not
register more than once.
Consequently, there is no need for the implementation of this interface to have a no-arg constructor. It can be a normal plugin component with dependency injection. However, one consequence of this is that the job handler does not get a job data map.
| Method Summary | |
|---|---|
void |
execute(JobInfo jobInfo)
Called by the scheduler when it is time for the job to run |
| Method Detail |
|---|
void execute(JobInfo jobInfo)
jobInfo - the job's scheduling information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||