Skip to content

Commit

Permalink
Revise the documentation to correct misleading information regarding …
Browse files Browse the repository at this point in the history
…the ItemWriteListener.

resolves spring-projects#4400
  • Loading branch information
hwan33 committed Nov 18, 2023
1 parent dcd1ac8 commit 022ccd1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,11 @@ public interface ItemWriteListener<S> extends StepListener {
----

The `beforeWrite` method is called before `write` on the `ItemWriter` and is handed the
list of items that is written. The `afterWrite` method is called after the item has been
successfully written. If there was an error while writing, the `onWriteError` method is
called. The exception encountered and the item that was attempted to be written are
list of items that is written.
The `afterWrite` method is called after the items have been successfully written, but it
occurs before the commitment of the transaction associated with the chunk's processing.
If there was an error while writing, the `onWriteError` method is called.
The exception encountered and the item that was attempted to be written are
provided, so that they can be logged.

The annotations corresponding to this interface are:
Expand Down

0 comments on commit 022ccd1

Please sign in to comment.