Class BroadleafScopedPagingStreams.StreamBuilder<T>
java.lang.Object
com.broadleafcommerce.sandbox.stream.BroadleafScopedPagingStreams.StreamBuilder<T>
- Enclosing class:
- BroadleafScopedPagingStreams
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the identifying value chunks and fetch plumbing to drive batch fetch during stream consumption.identifyingValues
(List<String> identifyingValues) Denote the list of identifying values to use to drivesource
fetching and stream population.pageSize
(int pageSize) Denote the page size used to split upidentifyingValues
.
-
Method Details
-
identifyingValues
public BroadleafScopedPagingStreams.StreamBuilder<T> identifyingValues(List<String> identifyingValues) Denote the list of identifying values to use to drivesource
fetching and stream population.- Parameters:
identifyingValues
- Denote the list of identifying values used to drivesource
fetching- Returns:
- The stream builder
-
pageSize
Denote the page size used to split upidentifyingValues
.- Parameters:
pageSize
- Denote the page size used to split upidentifyingValues
- Returns:
- The stream builder
-
build
Build the identifying value chunks and fetch plumbing to drive batch fetch during stream consumption.- Returns:
- The resulting stream, ready to be consumed.
-