Provide callbacks at specific points in the lifecycle of an IJob. 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. More...
Public Member Functions | |
void | BeforeJob (JobExecution jobExecution) |
Callback before a job executes. More... | |
void | AfterJob (JobExecution jobExecution) |
Callback after completion of a job. Called after both both successful and failed executions. To perform logic on a particular status, use "if (jobExecution.Status== BatchStatus.X)". More... | |
Detailed Description
Provide callbacks at specific points in the lifecycle of an IJob. 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.
Member Function Documentation
void Summer.Batch.Core.IJobExecutionListener.AfterJob | ( | JobExecution | jobExecution | ) |
Callback after completion of a job. Called after both both successful and failed executions. To perform logic on a particular status, use "if (jobExecution.Status== BatchStatus.X)".
- Parameters
-
jobExecution
Implemented in Summer.Batch.Core.Listener.CompositeJobExecutionListener, and Summer.Batch.Extra.Job.JobContextPreparer.
void Summer.Batch.Core.IJobExecutionListener.BeforeJob | ( | JobExecution | jobExecution | ) |
Callback before a job executes.
- Parameters
-
jobExecution
Implemented in Summer.Batch.Core.Listener.CompositeJobExecutionListener, and Summer.Batch.Extra.Job.JobContextPreparer.
The documentation for this interface was generated from the following file:
- Summer.Batch.Core/Core/IJobExecutionListener.cs