Package markets.alpaca.client.rest
Class AlpacaPaginationOptions.Builder
java.lang.Object
markets.alpaca.client.rest.AlpacaPaginationOptions.Builder
- Enclosing class:
- AlpacaPaginationOptions
Builder for
AlpacaPaginationOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds immutable pagination options.maxItems(int maxItems) Sets the maximum number of items to collect.maxPages(int maxPages) Sets the maximum number of pages to fetch.repeatedTokenAction(AlpacaPaginationOptions.RepeatedTokenAction repeatedTokenAction) Sets how repeated next-page tokens are handled.Removes the maximum item limit.Removes the maximum page limit.
-
Method Details
-
maxPages
Sets the maximum number of pages to fetch. -
unlimitedPages
Removes the maximum page limit. -
maxItems
Sets the maximum number of items to collect. -
unlimitedItems
Removes the maximum item limit. -
repeatedTokenAction
public AlpacaPaginationOptions.Builder repeatedTokenAction(AlpacaPaginationOptions.RepeatedTokenAction repeatedTokenAction) Sets how repeated next-page tokens are handled. -
build
Builds immutable pagination options.
-