Package com.google.cloud
Class AsyncPageImpl<T>
- java.lang.Object
-
- com.google.cloud.PageImpl<T>
-
- com.google.cloud.AsyncPageImpl<T>
-
- Type Parameters:
T- the value type that the page holds
- All Implemented Interfaces:
AsyncPage<T>,Page<T>,Serializable
@InternalApi public class AsyncPageImpl<T> extends PageImpl<T> implements AsyncPage<T>
Base implementation for asynchronously consuming Google Cloud paginated results.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAsyncPageImpl.NextPageFetcher<T>Interface for asynchronously fetching the next page of results from the service.
-
Constructor Summary
Constructors Constructor Description AsyncPageImpl(AsyncPageImpl.NextPageFetcher<T> asyncPageFetcher, String cursor, Iterable<T> results)Creates anAsyncPageImplobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiFuture<AsyncPage<T>>getNextPageAsync()-
Methods inherited from class com.google.cloud.PageImpl
equals, getNextPage, getNextPageToken, getValues, hashCode, hasNextPage, iterateAll, nextRequestOptions
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.api.gax.paging.Page
getNextPage, getNextPageToken, getValues, hasNextPage, iterateAll, streamAll, streamValues
-
-
-
-
Constructor Detail
-
AsyncPageImpl
public AsyncPageImpl(AsyncPageImpl.NextPageFetcher<T> asyncPageFetcher, String cursor, Iterable<T> results)
Creates anAsyncPageImplobject.
-
-