Class AkashPagedIterable<T>
java.lang.Object
cloud.quasarch.akash.impl.pagination.AkashPagedIterable<T>
- Type Parameters:
T- type of iterable
- All Implemented Interfaces:
Iterable<T>
Iterable implementation take supports fetching more data upstream.
It abstracts the concept of page, using next key.
-
Constructor Summary
ConstructorsConstructorDescriptionAkashPagedIterable(Function<String, PagedResponse<T>> dataFetcher, PagedResponse<T> firstPage) constructor -
Method Summary
-
Constructor Details
-
AkashPagedIterable
public AkashPagedIterable(Function<String, PagedResponse<T>> dataFetcher, PagedResponse<T> firstPage) constructor- Parameters:
dataFetcher- Function which is responsible for fetching ( fetching more ) data when the page endsfirstPage- The initial / already loaded, first page
-
-
Method Details