ResponseT - The type of a single response pageItemT - The type of paginated member in a response pagepublic final class ItemsSubscription<ResponseT,ItemT> extends PaginationSubscription<ResponseT>
Subscription interface that can be used to signal and cancel demand for
paginated items across pages| Modifier and Type | Class and Description |
|---|---|
static interface |
ItemsSubscription.Builder |
currentPage, nextPageFetcher, outstandingRequests, subscriber| Modifier and Type | Method and Description |
|---|---|
static ItemsSubscription.Builder |
builder()
Create a builder for creating a
ItemsSubscription. |
protected void |
handleRequests()
Recursive method to deal with requests until there are no outstandingRequests or
no more pages.
|
cancel, cleanup, completeSubscription, hasNextPage, isTerminated, request, stopTaskpublic static ItemsSubscription.Builder builder()
ItemsSubscription.protected void handleRequests()
PaginationSubscriptionhandleRequests in class PaginationSubscription<ResponseT>Copyright © 2020. All rights reserved.