Is there a way to limit the maximum number of processing records in the spring batch job?
I need a configuration through which I can control the maximum number of records that can be processed by a job.
If the job is reading from the database using a stored procedure, I can limit the maximum number of rows in the process, but I do not want to provide it in the spring batch for any I am looking for feature and I am not able to find it yet.
type a custom item reader
calculate the record and return null
('Stop Reading') when the limit is reached.
Store variables are used to calculate records in step-execution terms.
implements your custom ItemReader
Item stream
to apply: In this manner, SB / reference automatically.
I hope I was clear, English is not my n ative language.
No comments:
Post a Comment