maxPages property
Maximum number of pages to keep in memory at any one time.
null(default) — keep all pages, no limit.N > 0— when a new page is fetched and the total exceeds N, the oldest page is evicted. For fetchNextPage the first (oldest) page is dropped; for fetchPreviousPage the last page is dropped.
Cursors are recalculated after every eviction so bidirectional refetching
continues to work correctly. Must be a positive integer — passing 0
will throw an AssertionError in debug mode.
Implementation
final int? maxPages;