@NonNullApi
程序包 org.springframework.batch.core.step.tasklet
Interfaces and generic implementations of tasklet concerns.
- 作者:
- Michael Minella, Mahmoud Ben Hassine
接口概要 接口 说明 StoppableTasklet An extension to theTasklet
interface to allow users to add logic for stopping a tasklet.SystemProcessExitCodeMapper Maps the exit code of a system process to ExitStatus value returned by a system command.Tasklet Strategy for processing in a step.类概要 类 说明 CallableTaskletAdapter ConfigurableSystemProcessExitCodeMapper Maps exit codes toExitStatus
according to injected map.MethodInvokingTaskletAdapter ATasklet
that wraps a method in a POJO.SimpleSystemProcessExitCodeMapper SimpleSystemProcessExitCodeMapper
implementation that performs following mapping: 0 -> ExitStatus.FINISHED else -> ExitStatus.FAILEDSystemCommandTasklet Tasklet
that executes a system command.TaskletStep Simple implementation of executing the step as a call to aTasklet
, possibly repeated, and each call surrounded by a transaction.异常错误概要 异常错误 说明 SystemCommandException Exception indicating failed execution of system command.UncheckedTransactionException Convenience wrapper for a checked exception so that it can cause a rollback and be extracted afterwards.