ResponseT - The type of a single response pagepublic final class ResponsesSubscription<ResponseT> extends PaginationSubscription<ResponseT>
Subscription interface that can be used to signal and cancel demand for
paginated response pages.| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponsesSubscription.Builder |
currentPage, nextPageFetcher, outstandingRequests, subscriber| Modifier and Type | Method and Description |
|---|---|
static ResponsesSubscription.Builder |
builder()
Create a builder for creating a
ResponsesSubscription. |
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 ResponsesSubscription.Builder builder()
ResponsesSubscription.protected void handleRequests()
PaginationSubscriptionhandleRequests in class PaginationSubscription<ResponseT>Copyright © 2019. All rights reserved.