Implementations of RepeatOperations are not
restricted to executing the callback sequentially. It is quite important
that some implementations are able to execute their callbacks in parallel.
To this end, Spring Batch provides the
TaskExecutorRepeatTemplate, which uses the Spring
TaskExecutor strategy to run the
RepeatCallback. The default is to use a
SynchronousTaskExecutor, which has the effect of
executing the whole iteration in the same thread (the same as a normal
RepeatTemplate).