Class PagingJdbcIterable<R>

java.lang.Object
org.axonframework.messaging.eventhandling.deadletter.jdbc.PagingJdbcIterable<R>
Type Parameters:
R - The mapped result type.
All Implemented Interfaces:
Iterable<R>

@Internal public class PagingJdbcIterable<R> extends Object implements Iterable<R>
Enables iterating through a JDBC query using paging. Paging is taken care of automatically through the provided PagingJdbcIterable.PagingStatementSupplier, fetching the next page when the items run out to iterate through.

Do not use this for paging when you care about concurrent deletes. If you loaded a page, delete an item from it, and load the next, you will miss an item during iteration.

The iterator() function can be called multiple times to loop through the items, restarting the query from the start.

Since:
4.8.0
Author:
Mitchell Herrijgers, Steven van Beelen