Class BroadleafScopedPagingStreams.StreamBuilder<T>

java.lang.Object
com.broadleafcommerce.sandbox.stream.BroadleafScopedPagingStreams.StreamBuilder<T>
Enclosing class:
BroadleafScopedPagingStreams

public static final class BroadleafScopedPagingStreams.StreamBuilder<T> extends Object
  • Method Details

    • identifyingValues

      public BroadleafScopedPagingStreams.StreamBuilder<T> identifyingValues(List<String> identifyingValues)
      Denote the list of identifying values to use to drive source fetching and stream population.
      Parameters:
      identifyingValues - Denote the list of identifying values used to drive source fetching
      Returns:
      The stream builder
    • pageSize

      public BroadleafScopedPagingStreams.StreamBuilder<T> pageSize(int pageSize)
      Denote the page size used to split up identifyingValues.
      Parameters:
      pageSize - Denote the page size used to split up identifyingValues
      Returns:
      The stream builder
    • build

      public Stream<T> build()
      Build the identifying value chunks and fetch plumbing to drive batch fetch during stream consumption.
      Returns:
      The resulting stream, ready to be consumed.