Interface FailoverConfig.Builder

  • Method Details

    • failoverMode

      FailoverConfig.Builder failoverMode(String failoverMode)

      The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.

      Parameters:
      failoverMode - The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • failoverMode

      FailoverConfig.Builder failoverMode(FailoverMode failoverMode)

      The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.

      Parameters:
      failoverMode - The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recoveryWindow

      FailoverConfig.Builder recoveryWindow(Integer recoveryWindow)

      Search window time to look for dash-7 packets.

      Parameters:
      recoveryWindow - Search window time to look for dash-7 packets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePriority

      FailoverConfig.Builder sourcePriority(SourcePriority sourcePriority)

      The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.

      Parameters:
      sourcePriority - The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePriority

      default FailoverConfig.Builder sourcePriority(Consumer<SourcePriority.Builder> sourcePriority)

      The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.

      This is a convenience method that creates an instance of the SourcePriority.Builder avoiding the need to create one manually via SourcePriority.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourcePriority(SourcePriority).

      Parameters:
      sourcePriority - a consumer that will call methods on SourcePriority.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.

      Parameters:
      state - The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.

      Parameters:
      state - The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: