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 TypeMethodDescriptionaddAllFilters
(Iterable<String> filters) Set the filters to apply in conjunction withSubscriptionOptions.filter()
before subscribing.addAllIncludedColumns
(Iterable<String> columns) Set the columns to subscribe to from the upstream.addFilters
(String... filters) Set the filters to apply before subscribing.addIncludedColumns
(String... columns) Set the columns to subscribe to from the upstream.build()
Construct a newSubscriptionOptions
from this builder state.clearOnDisconnect
(boolean clearOnDisconnect) Set if the result table should clear its rows when a disconnect occurs.Set theFilter
to apply in conjunction withSubscriptionOptions.filters()
before subscribing.maxRetriesWithinWindow
(long maxRetriesInWindow) Set the maximum number of retries to attempt within thewindow
.retryWindowMillis
(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.retryWindowMillis
property.- 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.maxRetries
property.- Parameters:
maxRetriesInWindow
- the maximum allowed retries in thewindow
- Returns:
- this
SubscriptionOptions.Builder
-
addIncludedColumns
Set the columns to subscribe to from the upstream. Defaults to all columns.- Parameters:
columns
- the columns to include.- Returns:
- this
SubscriptionOptions.Builder
-
addAllIncludedColumns
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
Set the filters to apply in conjunction withSubscriptionOptions.filter()
before subscribing.- Parameters:
filters
- the filters to apply- Returns:
- this
SubscriptionOptions.Builder
-
filter
Set theFilter
to apply in conjunction withSubscriptionOptions.filters()
before subscribing.- Parameters:
filter
- the filter to apply- Returns:
- this
SubscriptionOptions.Builder
-
build
Construct a newSubscriptionOptions
from this builder state.- Returns:
- a new
SubscriptionOptions
.
-