@NonNullApi
Package org.springframework.batch.core.step.tasklet
Interfaces and generic implementations of tasklet concerns.
- Author:
- Michael Minella, Mahmoud Ben Hassine
Interface Summary Interface Description 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.Class Summary Class Description 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.Exception Summary Exception Description 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.