Package markets.alpaca.client.rest
Class AlpacaPaginationOptions
java.lang.Object
markets.alpaca.client.rest.AlpacaPaginationOptions
Options for bounded and defensive pagination helpers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forAlpacaPaginationOptions.static enumBehavior when a pagination sequence repeats a returned next-page token. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a builder for pagination options.static AlpacaPaginationOptionsdefaults()Returns the default options: unbounded page/item counts with repeated-token detection.maxItems()Maximum items to collect, or empty when item count is unbounded.maxPages()Maximum pages to fetch, or empty when page count is unbounded.Behavior when an endpoint returns the samenext_page_tokenmore than once.
-
Method Details
-
defaults
Returns the default options: unbounded page/item counts with repeated-token detection. -
builder
Returns a builder for pagination options. -
maxPages
Maximum pages to fetch, or empty when page count is unbounded. -
maxItems
Maximum items to collect, or empty when item count is unbounded. -
repeatedTokenAction
Behavior when an endpoint returns the samenext_page_tokenmore than once.
-