Class CursorBasedPaginatedService<T>
java.lang.Object
com.symphony.bdk.core.service.pagination.PaginatedService
com.symphony.bdk.core.service.pagination.CursorBasedPaginatedService<T>
-
Field Summary
Fields inherited from class com.symphony.bdk.core.service.pagination.PaginatedService
chunkSize, DEFAULT_PAGINATION_CHUNK_SIZE, DEFAULT_PAGINATION_TOTAL_SIZE, maxSize
-
Constructor Summary
ConstructorDescriptionCursorBasedPaginatedService
(CursorBasedPaginatedApi<T> paginatedApi, Integer chunkSize, Integer maxSize) -
Method Summary
-
Constructor Details
-
CursorBasedPaginatedService
public CursorBasedPaginatedService(CursorBasedPaginatedApi<T> paginatedApi, Integer chunkSize, Integer maxSize) - Parameters:
paginatedApi
- the paginated api to be calledchunkSize
- the max number of items to be retrieved in one callmaxSize
- the total max number of items to be retrieved
-
-
Method Details
-
stream
Returns an stream of elements with lazy fetching.- Returns:
- a
Stream
which lazily makes calls to thepaginatedApi
.
-