|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobExecutionListener
Provide callbacks at specific points in the lifecycle of a Job.
Implementations can be stateful if they are careful to either ensure thread
safety, or to use one instance of a listener per job, assuming that job
instances themselves are not used by more than one thread.
| Method Summary | |
|---|---|
void |
afterJob(JobExecution jobExecution)
Callback after successful completion of a job. |
void |
beforeJob(JobExecution jobExecution)
Initialise the state of the listener with the JobExecution from
the current scope. |
void |
onError(JobExecution jobExecution,
Throwable e)
Callback on job failure owing to the throwable provided. |
void |
onInterrupt(JobExecution jobExecution)
Callback when a job is interrupted or stopped manually. |
| Method Detail |
|---|
void beforeJob(JobExecution jobExecution)
JobExecution from
the current scope.
jobExecution - the current JobExecutionvoid afterJob(JobExecution jobExecution)
jobExecution - the current JobExecution
void onError(JobExecution jobExecution,
Throwable e)
jobExecution - the current JobExecutione - the exception that caused the job to terminatevoid onInterrupt(JobExecution jobExecution)
jobExecution - the current JobExecution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||