com.atlassian.scheduler.compat
Interface JobHandler


@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.

Since:
1.0

Method Summary
 void execute(JobInfo jobInfo)
          Called by the scheduler when it is time for the job to run
 

Method Detail

execute

void execute(JobInfo jobInfo)
Called by the scheduler when it is time for the job to run

Parameters:
jobInfo - the job's scheduling information


Copyright © 2014 Atlassian. All Rights Reserved.