T - the value type that the page holdspublic class AsyncPageImpl<T> extends PageImpl<T> implements AsyncPage<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AsyncPageImpl.NextPageFetcher<T>
Interface for asynchronously fetching the next page of results from the service.
|
| Constructor and Description |
|---|
AsyncPageImpl(AsyncPageImpl.NextPageFetcher<T> asyncPageFetcher,
String cursor,
Iterable<T> results)
Creates an
AsyncPageImpl object. |
| Modifier and Type | Method and Description |
|---|---|
Future<AsyncPage<T>> |
nextPageAsync()
Returns a
Future object for the next page. |
equals, hashCode, iterateAll, nextPage, nextPageCursor, nextRequestOptions, valuesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waititerateAll, nextPage, nextPageCursor, valuespublic AsyncPageImpl(AsyncPageImpl.NextPageFetcher<T> asyncPageFetcher, String cursor, Iterable<T> results)
AsyncPageImpl object.public Future<AsyncPage<T>> nextPageAsync()
AsyncPageFuture object for the next page. Future.get() returns null if
the last page has been reached.nextPageAsync in interface AsyncPage<T>Copyright © 2016 Google. All rights reserved.