File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
spring-batch-docs/modules/ROOT/pages/step/chunk-oriented-processing Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -207,9 +207,11 @@ 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.
211
+ The `afterWrite` method is called after the items have been successfully written, but it
212
+ occurs before the commitment of the transaction associated with the chunk's processing.
213
+ If there was an error while writing, the `onWriteError` method is called.
214
+ The exception encountered and the item that was attempted to be written are
213
215
provided, so that they can be logged.
214
216
215
217
The annotations corresponding to this interface are:
You can’t perform that action at this time.
0 commit comments