Class BatchEventAutoConfiguration
java.lang.Object
org.springframework.cloud.task.batch.listener.BatchEventAutoConfiguration
@AutoConfiguration(after=SimpleTaskAutoConfiguration.class)
@ConditionalOnClass(org.springframework.batch.core.Job.class)
@ConditionalOnBean({org.springframework.batch.core.Job.class,TaskLifecycleListener.class})
@ConditionalOnProperty(prefix="spring.cloud.task.batch.events",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class BatchEventAutoConfiguration
extends Object
Autoconfigures Spring Batch listeners designed to emit events on the following
channels.
EventEmittingJobExecutionListener
- job-execution-eventsEventEmittingStepExecutionListener
- step-execution-eventsChunkListener
- chunk-eventsEventEmittingItemReadListener
- item-read-eventsEventEmittingItemProcessListener
- item-process-eventsEventEmittingItemWriteListener
- item-write-eventsEventEmittingSkipListener
- skip-events
- Author:
- Michael Minella, Glenn Renfro, Ali Shahbour
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration for Job Execution Listener. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the chunk events listener bean.static final String
Name of the item process events listener bean.static final String
Name of the item read events listener bean.static final String
Name of the item write events listener bean.static final String
Name of the job execution events listener bean.static final String
Name of the skip events listener bean.static final String
Name of the step execution events listener bean. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
JOB_EXECUTION_EVENTS_LISTENER
Name of the job execution events listener bean.- See Also:
-
CHUNK_EVENTS_LISTENER
Name of the chunk events listener bean.- See Also:
-
STEP_EXECUTION_EVENTS_LISTENER
Name of the step execution events listener bean.- See Also:
-
ITEM_READ_EVENTS_LISTENER
Name of the item read events listener bean.- See Also:
-
ITEM_WRITE_EVENTS_LISTENER
Name of the item write events listener bean.- See Also:
-
ITEM_PROCESS_EVENTS_LISTENER
Name of the item process events listener bean.- See Also:
-
SKIP_EVENTS_LISTENER
Name of the skip events listener bean.- See Also:
-
-
Constructor Details
-
BatchEventAutoConfiguration
public BatchEventAutoConfiguration()
-
-
Method Details
-
batchTaskEventListenerBeanPostProcessor
@Bean @ConditionalOnMissingBean public static TaskBatchEventListenerBeanPostProcessor batchTaskEventListenerBeanPostProcessor()
-