Package io.deephaven.uri
Interface PersistentQueryURI.Builder
- Enclosing class:
- PersistentQueryURI
public static interface PersistentQueryURI.Builder
A Builder for a
PersistentQueryURI-
Method Summary
Modifier and TypeMethodDescription@NotNull PersistentQueryURI.BuilderaddAllIncludedColumns(@NotNull Iterable<String> includedColumns) Set the columns to include from the upstream table.@NotNull PersistentQueryURI.BuilderaddIncludedColumns(@NotNull String... includedColumns) Set the columns to include from the upstream table.@NotNull PersistentQueryURIbuild()Construct a newPersistentQueryURIfrom this builder's state.@NotNull PersistentQueryURI.BuilderclearOnDisconnect(boolean clearOnDisconnect) Set if the table should clear its rows on a disconnect (defaults to true).@NotNull PersistentQueryURI.BuilderisBlink(boolean isBlink) Set if the table should be a blink table.@NotNull PersistentQueryURI.BuilderisSnapshot(boolean isSnapshot) Set if the fetched result should be a static snapshot (defaults to false).@NotNull PersistentQueryURI.BuildermaxRetriesInWindow(int maxRetries) Set the maximum number of retries allowed in theretryWindowMillis(long).@NotNull PersistentQueryURI.BuilderpqIdentifier(@NotNull String identifier) Set the identifier of the Persistent Query.@NotNull PersistentQueryURI.BuilderretryWindowMillis(long windowMillis) Set timeout for reconnection in milliseconds (defaults to 5 minutes)@NotNull PersistentQueryURI.BuildervariableName(@NotNull String name) Set the name of the variable to fetch.@NotNull PersistentQueryURI.BuilderwaitTimeout(@NotNull Duration waitTimeout) Set the timeout to wait for the initial snapshot.
-
Method Details
-
pqIdentifier
Set the identifier of the Persistent Query. This may be its serial, or its name.- Parameters:
identifier- the id- Returns:
- this builder
-
variableName
Set the name of the variable to fetch.- Parameters:
name- the variable name- Returns:
- this builder
-
isSnapshot
Set if the fetched result should be a static snapshot (defaults to false).- Parameters:
isSnapshot- if the result should be a static snapshot- Returns:
- this builder
-
clearOnDisconnect
Set if the table should clear its rows on a disconnect (defaults to true).- Parameters:
clearOnDisconnect- if the table should clear its rows when disconnected- Returns:
- this builder
-
retryWindowMillis
Set timeout for reconnection in milliseconds (defaults to 5 minutes)- Parameters:
windowMillis- the window in milliseconds- Returns:
- this builder
-
maxRetriesInWindow
Set the maximum number of retries allowed in theretryWindowMillis(long). (defaults to 0, unlimited)- Parameters:
maxRetries- the maximum number of retries allowed (0 is unlimited)- Returns:
- this builder
-
addIncludedColumns
@NotNull @NotNull PersistentQueryURI.Builder addIncludedColumns(@NotNull @NotNull String... includedColumns) Set the columns to include from the upstream table.- Parameters:
includedColumns- the columns to include.- Returns:
- this
PersistentQueryURI.Builder
-
addAllIncludedColumns
@NotNull @NotNull PersistentQueryURI.Builder addAllIncludedColumns(@NotNull @NotNull Iterable<String> includedColumns) Set the columns to include from the upstream table.- Parameters:
includedColumns- the columns to include.- Returns:
- this
PersistentQueryURI.Builder
-
isBlink
Set if the table should be a blink table. When this option is set the remote table must also be a blink table, or the subscription will fail. If the remote table is a blink table and this is not set, the subscription will work and will appear as a normal ticking table that is empty unless data arrived in the current cycle.- Parameters:
isBlink- if the table should be a blink table.- Returns:
- this
PersistentQueryURI.Builder
-
waitTimeout
Set the timeout to wait for the initial snapshot.- Parameters:
waitTimeout- the timeout duration- Returns:
- this
PersistentQueryURI.Builder
-
build
Construct a newPersistentQueryURIfrom this builder's state.- Returns:
- a new URI
-