You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the getCurrentItemCount() in AbstractItemCountingItemStreamItemReader be made public? Currently the setter is public, but the getter is protected.
Ideally it would be in a new ItemCountAwareItemStreamReader interface, that way the method can also be called on job-scoped instances with the default JDK proxies instead of cglib.
My current use case for this is creating a SkippableItemReader that is capable of skipping records based on a specific configuration table that stores the record numbers to skip per job instance. At the moment I had to create a SkippableFlatFileItemReader and SkippableStaxEventItemReader (with duplicated code). I would prefer creating a SkippableItemReader that can delegate to any AbstractItemCountingItemStreamItemReader / ItemCountAwareItemStreamReader.