Interface PersistentQueryURI.Builder

Enclosing class:
PersistentQueryURI

public static interface PersistentQueryURI.Builder
A Builder for a PersistentQueryURI
  • Method Details

    • pqIdentifier

      PersistentQueryURI.Builder pqIdentifier(@NotNull String identifier)
      Set the identifier of the Persistent Query. This may be its serial, or its name.
      Parameters:
      identifier - the id
      Returns:
      this builder
    • variableName

      PersistentQueryURI.Builder variableName(@NotNull String name)
      Set the name of the variable to fetch.
      Parameters:
      name - the variable name
      Returns:
      this builder
    • isSnapshot

      PersistentQueryURI.Builder isSnapshot(boolean 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

      PersistentQueryURI.Builder clearOnDisconnect(boolean 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

      PersistentQueryURI.Builder retryWindowMillis(long windowMillis)
      Set timeout for reconnection in milliseconds (defaults to 5 minutes)
      Parameters:
      windowMillis - the window in milliseconds
      Returns:
      this builder
    • maxRetriesInWindow

      PersistentQueryURI.Builder maxRetriesInWindow(int maxRetries)
      Set the maximum number of retries allowed in the retryWindowMillis(long). (defaults to 0, unlimited)
      Parameters:
      maxRetries - the maximum number of retries allowed (0 is unlimited)
      Returns:
      this builder
    • build

      Construct a new PersistentQueryURI from this builder's state.
      Returns:
      a new URI