Skip to content
Discussion options

You must be logged in to vote

The background of this question is whether custom writer implementations should expect potential empty chunks. If yes, it might be good to emphasize this in the ItemWriter contract.

Yes, and most of item writers provided by Spring Batch check if the chunk is empty before actually writing items. I will turn this into an issue to clarify that detail in the contract of ItemWriter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scordio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants