C - connection type expected to handle the operations.T - the type of the returned pages.public interface PagingProvider<C,T> extends Closeable
Implementing this interface does not guarantee thread safeness.
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getPage(C connection)
Returns the next page of items.
|
Optional<Integer> |
getTotalResults(C connection)
returns the total amount of items in the non-paged result set.
|
List<T> getPage(C connection)
List then it means no more items are availableOptional<Integer> getTotalResults(C connection)
Optional.empty() value is returned.connection - The connection to be used to do the query.Copyright © 2016 MuleSoft, Inc.. All rights reserved.