File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-batch-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1184,9 +1184,10 @@ public interface ItemWriteListener<S> extends StepListener {
1184
1184
----
1185
1185
1186
1186
The `beforeWrite` method is called before `write` on the `ItemWriter` and is handed the
1187
- list of items that is written. The `afterWrite` method is called after the item has been
1188
- successfully written. If there was an error while writing, the `onWriteError` method is
1189
- called. The exception encountered and the item that was attempted to be written are
1187
+ list of items that is written. The `afterWrite` method is called after the items have been
1188
+ successfully written, but before committing the transaction associated with the chunk's processing.
1189
+ If there was an error while writing, the `onWriteError` method is called.
1190
+ The exception encountered and the item that was attempted to be written are
1190
1191
provided, so that they can be logged.
1191
1192
1192
1193
The annotations corresponding to this interface are:
You can’t perform that action at this time.
0 commit comments