Package org.jeasy.batch.core.listener
Interface JobListener
-
- All Known Implementing Classes:
CompositeJobListener
public interface JobListenerEnables the implementing class to get notified before/after the batch job.- Author:
- Mario Mueller (mario@xenji.com)
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterJob(JobReport jobReport)Called after the job is finished (successfully or with a failure).default voidbeforeJob(JobParameters jobParameters)Called before starting the job.
-
-
-
Method Detail
-
beforeJob
default void beforeJob(JobParameters jobParameters)
Called before starting the job.- Parameters:
jobParameters- the job parameters
-
afterJob
default void afterJob(JobReport jobReport)
Called after the job is finished (successfully or with a failure).- Parameters:
jobReport- The job execution report
-
-