Interface AsyncPageSupplier<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Loads one page of elements asynchronously, typically from a database.
Called on every page change unless a fresh cached entry exists. The returned future may
complete on any thread; the framework applies the result on the appropriate thread for the
owning inventory. Return at most pageSize items — oversized results
are truncated with a warning.
Returning null is treated as a failed load. A future that never completes leaves the
paginator loading until a superseding navigation or the configured request timeout recovers it.
-
Method Summary
-
Method Details
-
load
Loads the requested page.- Parameters:
request- the page being requested, never null- Returns:
- a future completing with the page's items and total element count
-