Interface for listeners to the batch process. Implementers can provide
enhance the behaviour of a batch in small cross-cutting modules. The
framework provides callbacks at key points in the processing.
Called once at the start of a complete batch, before any items are
processed. Implementers can use this method to acquire any resources that
might be needed during processing. Implementers can halt the current
operation by setting the complete flag on the context. To halt all
enclosing batches (the whole job), the would need to use the parent
Called when a repeat callback fails by throwing an exception. There will
be one call to this method for each exception thrown during a repeat
operation (e.g. a chunk).
There is no need to re-throw the exception here - that will be done by
the enclosing framework.
context - the current batch context
e - the error that was encountered in an item callback.