Package io.deephaven.enterprise.remote
Interface SubscriptionOptions.Builder
- Enclosing interface:
- SubscriptionOptions
public static interface SubscriptionOptions.Builder
Implementations of this interface can be used to construct a new
SubscriptionOptions.-
Method Summary
Modifier and TypeMethodDescription@NotNull SubscriptionOptions.BuilderaddAllFilters(@NotNull Iterable<String> filters) Set the filters to apply in conjunction withSubscriptionOptions.filter()before subscribing.@NotNull SubscriptionOptions.BuilderaddAllIncludedColumns(@NotNull Iterable<String> columns) Set the columns to subscribe to from the upstream.@NotNull SubscriptionOptions.BuilderaddFilters(@NotNull String... filters) Set the filters to apply before subscribing.@NotNull SubscriptionOptions.BuilderaddIncludedColumns(@NotNull String... columns) Set the columns to subscribe to from the upstream.@NotNull SubscriptionOptionsbuild()Construct a newSubscriptionOptionsfrom this builder state.@NotNull SubscriptionOptions.BuilderclearOnDisconnect(boolean clearOnDisconnect) Set if the result table should clear its rows when a disconnect occurs.@NotNull SubscriptionOptions.BuilderSet theFilterto apply in conjunction withSubscriptionOptions.filters()before subscribing.@NotNull SubscriptionOptions.BuildermaxRetriesWithinWindow(long maxRetriesInWindow) Set the maximum number of retries to attempt within thewindow.@NotNull SubscriptionOptions.BuilderretryWindowMillis(long retryWindowMillis) Set the width of the window in milliseconds in which to attempt to reconnect.
-
Method Details
-
clearOnDisconnect
Set if the result table should clear its rows when a disconnect occurs. Defaults totrue.- Parameters:
clearOnDisconnect- if the result table should clear rows on disconnection- Returns:
- this
SubscriptionOptions.Builder
-
retryWindowMillis
Set the width of the window in milliseconds in which to attempt to reconnect. Defaults to 60 seconds, unless changed via theConnectionAwareRemoteTableParams.retryWindowMillisproperty.- Parameters:
retryWindowMillis- the reconnection window in milliseconds- Returns:
- this
SubscriptionOptions.Builder
-
maxRetriesWithinWindow
Set the maximum number of retries to attempt within thewindow. Defaults to 5, unless changed via thaConnectionAwareRemoteTableParams.maxRetriesproperty.- Parameters:
maxRetriesInWindow- the maximum allowed retries in thewindow- Returns:
- this
SubscriptionOptions.Builder
-
addIncludedColumns
@NotNull @NotNull SubscriptionOptions.Builder addIncludedColumns(@NotNull @NotNull String... columns) Set the columns to subscribe to from the upstream. Defaults to all columns.- Parameters:
columns- the columns to include.- Returns:
- this
SubscriptionOptions.Builder
-
addAllIncludedColumns
@NotNull @NotNull SubscriptionOptions.Builder addAllIncludedColumns(@NotNull @NotNull Iterable<String> columns) Set the columns to subscribe to from the upstream. Defaults to all columns.- Parameters:
columns- the columns to subscribe- Returns:
- this
SubscriptionOptions.Builder
-
addFilters
Set the filters to apply before subscribing.- Parameters:
filters- the filters to apply- Returns:
- this
SubscriptionOptions.Builder
-
addAllFilters
@NotNull @NotNull SubscriptionOptions.Builder addAllFilters(@NotNull @NotNull Iterable<String> filters) Set the filters to apply in conjunction withSubscriptionOptions.filter()before subscribing.- Parameters:
filters- the filters to apply- Returns:
- this
SubscriptionOptions.Builder
-
filter
Set theFilterto apply in conjunction withSubscriptionOptions.filters()before subscribing.- Parameters:
filter- the filter to apply- Returns:
- this
SubscriptionOptions.Builder
-
build
Construct a newSubscriptionOptionsfrom this builder state.- Returns:
- a new
SubscriptionOptions.
-