@NonNullApi
程序包 org.springframework.batch.core
Core domain context for Spring Batch covering jobs, steps, configuration and execution abstractions. Most classes here are interfaces with implementations saved for specific applications. This is the public API of Spring Batch. There is a reference implementation of the core interfaces in the execution module.
- 作者:
- Michael Minella, Mahmoud Ben Hassine
接口概要 接口 说明 ChunkListener Listener interface for the lifecycle of a chunk.ItemProcessListener<T,S> Listener interface for the processing of an item.ItemReadListener<T> Listener interface around the reading of an item.ItemWriteListener<S> Listener interface for the writing of items.Job Batch domain object representing a job.JobExecutionListener Provide callbacks at specific points in the lifecycle of aJob
.JobKeyGenerator<T> Strategy interface for the generation of the key used in identifying uniqueJobInstance
.JobParametersIncrementer Interface for obtaining the nextJobParameters
in a sequence.JobParametersValidator Strategy interface for aJob
to use in validating its parameters for an execution.SkipListener<T,S> Interface for listener to skipped items.Step Batch domain interface representing the configuration of a step.StepExecutionListener Listener interface for the lifecycle of aStep
.StepListener Marker interface that acts as a parent to all step domain listeners, such as:StepExecutionListener
,ChunkListener
,ItemReadListener
andItemWriteListener
类概要 类 说明 DefaultJobKeyGenerator Default implementation of theJobKeyGenerator
interface.Entity Batch Domain Entity class.ExitStatus Value object used to carry information about the status of a job or step execution.JobExecution Batch domain object representing the execution of a job.JobInstance Batch domain object representing a uniquely identifiable job run.JobParameter Domain representation of a parameter to a batch job.JobParameters Value object representing runtime parameters to a batch job.JobParametersBuilder Helper class for creatingJobParameters
.StepContribution Represents a contribution to aStepExecution
, buffering changes until they can be applied at a chunk boundary.StepExecution Batch domain object representation the execution of a step.枚举概要 枚举 说明 BatchStatus Enumeration representing the status of an Execution.JobParameter.ParameterType Enumeration representing the type of a JobParameter.异常错误概要 异常错误 说明 JobExecutionException Root of exception hierarchy for checked exceptions in job and step execution.JobInterruptedException Exception to indicate the the job has been interrupted.JobParametersInvalidException Exception forJob
to signal that someJobParameters
are invalid.StartLimitExceededException Indicates the step's start limit has been exceeded.UnexpectedJobExecutionException Indicates to the framework that a critical error has occurred and processing should immediately stop.