File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-batch-docs/modules/ROOT/pages/step/chunk-oriented-processing Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -207,9 +207,10 @@ public interface ItemWriteListener<S> extends StepListener {
207
207
----
208
208
209
209
The `beforeWrite` method is called before `write` on the `ItemWriter` and is handed the
210
- list of items that is written. The `afterWrite` method is called after the item has been
211
- successfully written. If there was an error while writing, the `onWriteError` method is
212
- called. The exception encountered and the item that was attempted to be written are
210
+ list of items that is written. The `afterWrite` method is called after the items have been
211
+ successfully written, but before committing the transaction associated with the chunk's processing.
212
+ If there was an error while writing, the `onWriteError` method is called.
213
+ The exception encountered and the item that was attempted to be written are
213
214
provided, so that they can be logged.
214
215
215
216
The annotations corresponding to this interface are:
You can’t perform that action at this time.
0 commit comments