@Configuration @ConditionalOnClass(value=org.springframework.batch.core.Job.class) @ConditionalOnBean(value={org.springframework.batch.core.Job.class,TaskLifecycleListener.class}) @ConditionalOnProperty(prefix="spring.cloud.task.batch.events", name="enabled", havingValue="true", matchIfMissing=true) @AutoConfigureAfter(value=SimpleTaskAutoConfiguration.class) public class BatchEventAutoConfiguration extends Object
EventEmittingJobExecutionListener
- job-execution-eventsEventEmittingStepExecutionListener
- step-execution-eventsChunkListener
- chunk-eventsEventEmittingItemReadListener
- item-read-eventsEventEmittingItemProcessListener
- item-process-eventsEventEmittingItemWriteListener
- item-write-eventsEventEmittingSkipListener
- skip-eventsModifier and Type | Class and Description |
---|---|
static interface |
BatchEventAutoConfiguration.BatchEventsChannels
Name of Batch Events channels.
|
static class |
BatchEventAutoConfiguration.JobExecutionListenerConfiguration
Configuration for Job Execution Listener.
|
Modifier and Type | Field and Description |
---|---|
static String |
CHUNK_EVENTS_LISTENER
Name of the chunk events listener bean.
|
static String |
ITEM_PROCESS_EVENTS_LISTENER
Name of the item process events listener bean.
|
static String |
ITEM_READ_EVENTS_LISTENER
Name of the item read events listener bean.
|
static String |
ITEM_WRITE_EVENTS_LISTENER
Name of the item write events listener bean.
|
static String |
JOB_EXECUTION_EVENTS_LISTENER
Name of the job execution events listener bean.
|
static String |
SKIP_EVENTS_LISTENER
Name of the skip events listener bean.
|
static String |
STEP_EXECUTION_EVENTS_LISTENER
Name of the step execution events listener bean.
|
Constructor and Description |
---|
BatchEventAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
TaskBatchEventListenerBeanPostProcessor |
batchTaskEventListenerBeanPostProcessor() |
public static final String JOB_EXECUTION_EVENTS_LISTENER
public static final String CHUNK_EVENTS_LISTENER
public static final String STEP_EXECUTION_EVENTS_LISTENER
public static final String ITEM_READ_EVENTS_LISTENER
public static final String ITEM_WRITE_EVENTS_LISTENER
public static final String ITEM_PROCESS_EVENTS_LISTENER
public static final String SKIP_EVENTS_LISTENER
@Bean @ConditionalOnMissingBean public TaskBatchEventListenerBeanPostProcessor batchTaskEventListenerBeanPostProcessor()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.