Package com.qtsurfer.api.sdk
Class SweepOptions.Builder
java.lang.Object
com.qtsurfer.api.sdk.SweepOptions.Builder
- Enclosing class:
- SweepOptions
Fluent builder for
SweepOptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the options.maxPollInterval(Duration maxPollInterval) onProgress(Consumer<SweepProgressEvent> onProgress) order(SweepOrder order) Which view of the rows to read;nulltakes the platform default (SweepOrder.RANKED).pollInterval(Duration pollInterval) ranking(SweepRanking ranking) How to order the leaderboard;nulltakes the platform default.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onProgress
- Parameters:
onProgress- callback for stage transitions and poll updates- Returns:
- this builder
-
pollInterval
- Parameters:
pollInterval- initial interval between status polls- Returns:
- this builder
-
maxPollInterval
- Parameters:
maxPollInterval- upper bound of the exponential backoff- Returns:
- this builder
-
timeout
- Parameters:
timeout- per-stage timeout;nulldisables- Returns:
- this builder
-
ranking
How to order the leaderboard;nulltakes the platform default. Has no effect at all alongsideSweepOrder.NATURAL.- Parameters:
ranking- plateau or raw ordering of the ranked view- Returns:
- this builder
-
order
Which view of the rows to read;nulltakes the platform default (SweepOrder.RANKED). ChooseSweepOrder.NATURALto receive every row untruncated — the only route to rows the ranked view dropped.- Parameters:
order- the ranked display view or the natural materialisation order- Returns:
- this builder
-
build
Build the options.- Returns:
- the immutable options
-