Tasklet
Interface for encapsulating processing logic that is not natural to split
into read-(transform)-write phases, such as invoking a system command or a
stored procedure.
Since the batch framework has no visibility inside the Tasklet.execute()
method, developers should consider implementing StepExecutionListener and
check the StepExecution.isTerminateOnly() value for long lasting
processes to enable prompt termination of processing on user request.
It is expected the read-(transform)-write separation will be appropriate for
most cases and developers should implement ItemReader and
ItemWriter interfaces then (typically extending or composing provided
implementations).
|