public class EventEmittingJobExecutionListener extends Object implements org.springframework.batch.core.JobExecutionListener, org.springframework.core.Ordered
JobExecutionEvent
at both the start and end of the job's execution.Constructor and Description |
---|
EventEmittingJobExecutionListener(org.springframework.messaging.MessageChannel output) |
EventEmittingJobExecutionListener(org.springframework.messaging.MessageChannel output,
int order) |
Modifier and Type | Method and Description |
---|---|
void |
afterJob(org.springframework.batch.core.JobExecution jobExecution) |
void |
beforeJob(org.springframework.batch.core.JobExecution jobExecution) |
int |
getOrder() |
public EventEmittingJobExecutionListener(org.springframework.messaging.MessageChannel output)
public EventEmittingJobExecutionListener(org.springframework.messaging.MessageChannel output, int order)
public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
beforeJob
in interface org.springframework.batch.core.JobExecutionListener
public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
afterJob
in interface org.springframework.batch.core.JobExecutionListener
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.