Package io.deephaven.uri
Interface PersistentQueryURI.Builder
- Enclosing class:
- PersistentQueryURI
public static interface PersistentQueryURI.Builder
A Builder for a
PersistentQueryURI
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct a newPersistentQueryURI
from this builder's state.clearOnDisconnect
(boolean clearOnDisconnect) Set if the table should clear its rows on a disconnect (defaults to true).isSnapshot
(boolean isSnapshot) Set if the fetched result should be a static snapshot (defaults to false).maxRetriesInWindow
(int maxRetries) Set the maximum number of retries allowed in theretryWindowMillis(long)
.pqIdentifier
(String identifier) Set the identifier of the Persistent Query.retryWindowMillis
(long windowMillis) Set timeout for reconnection in milliseconds (defaults to 5 minutes)variableName
(String name) Set the name of the variable to fetch.
-
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
-
build
PersistentQueryURI build()Construct a newPersistentQueryURI
from this builder's state.- Returns:
- a new URI
-