The JPA Channel Input Adapter and JPA Retrieving Outbound Gateway have a max-number-of-results settings.
Is it possible to use this in order to ensure the data is sent onto the channel in a paged fashion? I couldn't see a way in the documentation to configure an adaptor or gateway so it sends the data in this way.
I have use cases where I am retrieving entities by entity-class, and there can be occasions when the sheer number of entities in the datasource would cause memory issues if all retrieved and put on the channel in one message. In those cases I'd like to have for example a 1000 entities put on the channel at a time. Is that possible? For example if I was just using a Spring Data Repository I'd just call the findAll method with a Pageable.