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 TypeMethodDescriptionaddAllIncludedColumns
(Iterable<String> columns) Set the columns to subscribe to from the upstream.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.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
-
build
Construct a newSubscriptionOptions
from this builder state.- Returns:
- a new
SubscriptionOptions
.
-