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:
com.google.api.gax.paging.AsyncPage<T>
,com.google.api.gax.paging.Page<T>
,Serializable
@InternalApi public class AsyncPageImpl<T> extends PageImpl<T> implements com.google.api.gax.paging.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 interface
AsyncPageImpl.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 anAsyncPageImpl
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.core.ApiFuture<com.google.api.gax.paging.AsyncPage<T>>
getNextPageAsync()
-
Methods inherited from class com.google.cloud.PageImpl
equals, getNextPage, getNextPageToken, getValues, hashCode, hasNextPage, iterateAll, nextRequestOptions
-
-
-
-
Constructor Detail
-
AsyncPageImpl
public AsyncPageImpl(AsyncPageImpl.NextPageFetcher<T> asyncPageFetcher, String cursor, Iterable<T> results)
Creates anAsyncPageImpl
object.
-
-