ResponseT
- Type of Responsepublic interface AsyncPageFetcher<ResponseT>
Modifier and Type | Method and Description |
---|---|
boolean |
hasNextPage(ResponseT oldPage)
Returns a boolean value indicating if a next page is available.
|
CompletableFuture<ResponseT> |
nextPage(ResponseT oldPage)
Method that uses the information in #oldPage and returns a
completable future for the next page.
|
boolean hasNextPage(ResponseT oldPage)
oldPage
- last page sent by service in a paginated operationCompletableFuture<ResponseT> nextPage(ResponseT oldPage)
oldPage
- last page sent by service in a paginated operationCopyright © 2021. All rights reserved.