Class StreamOptions.Builder

  • Enclosing class:
    StreamOptions

    public static class StreamOptions.Builder
    extends java.lang.Object
    Builder class for constructing StreamOptions instances.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • cursor

        public StreamOptions.Builder cursor​(java.lang.String cursor)
        Sets the cursor for the stream.
        Parameters:
        cursor - A String representing the cursor position.
        Returns:
        This Builder instance.
      • startTimestamp

        public StreamOptions.Builder startTimestamp​(long startTimestamp)
        Sets the start timestamp for the stream.
        Parameters:
        startTimestamp - A long representing the start timestamp.
        Returns:
        This Builder instance.
      • statusEvents

        public StreamOptions.Builder statusEvents​(java.lang.Boolean statusEvents)
        Enables or disables status events for the stream.
        Parameters:
        statusEvents - A Boolean indicating if status events are enabled.
        Returns:
        This Builder instance.
      • timeout

        public StreamOptions.Builder timeout​(java.time.Duration timeout)
        Sets the timeout duration for the stream.
        Parameters:
        timeout - A Duration representing the timeout.
        Returns:
        This Builder instance.
      • build

        public StreamOptions build()
        Builds a new StreamOptions instance with the configured parameters.
        Returns:
        A new StreamOptions instance.