AsyncPager

public class AsyncPager<T extends JsonSerializable> extends BasePager<T>

AsyncPager class for handling paginated results asynchronously.

Functions

Link copied to clipboard
public CompletableFuture<Void> forEach(Consumer<? super T> itemAction)
Asynchronously processes each item fetched by this pager.
Link copied to clipboard
Asynchronously returns the name of the item for this pager.
Link copied to clipboard
public CompletableFuture<ImmutableList<T>> nextPage()
Asynchronously fetches the next page of items.
Link copied to clipboard
public CompletableFuture<ImmutableList<T>> page()
Asynchronously returns the current page of items as a list.
Link copied to clipboard
Asynchronously returns the page size for this pager.
Link copied to clipboard
Asynchronously returns an Optional of the HttpResponse for the current page, which can be used to get the http headers.
Link copied to clipboard
Asynchronously returns the size of the current page.