Interface GetChannelResponse.Builder

  • Method Details

    • state

      The current state of the channel. The state is one of the following values:

      • active – The channel is operating normally.

      • failing – The channel can't commit rows to the table because of an error that requires your action. For details, see errorCode and errorMessage.

      Parameters:
      state - The current state of the channel. The state is one of the following values:

      • active – The channel is operating normally.

      • failing – The channel can't commit rows to the table because of an error that requires your action. For details, see errorCode and errorMessage.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The current state of the channel. The state is one of the following values:

      • active – The channel is operating normally.

      • failing – The channel can't commit rows to the table because of an error that requires your action. For details, see errorCode and errorMessage.

      Parameters:
      state - The current state of the channel. The state is one of the following values:

      • active – The channel is operating normally.

      • failing – The channel can't commit rows to the table because of an error that requires your action. For details, see errorCode and errorMessage.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • approximateNumberOfBufferedRows

      GetChannelResponse.Builder approximateNumberOfBufferedRows(Long approximateNumberOfBufferedRows)

      The approximate number of rows that the channel has buffered and not yet committed to the table.

      Parameters:
      approximateNumberOfBufferedRows - The approximate number of rows that the channel has buffered and not yet committed to the table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorCode

      GetChannelResponse.Builder errorCode(String errorCode)

      The code of the error that's blocking the channel from committing buffered rows to the table. For how to fix each error, see ChannelErrorCode. GetChannel returns this value only when state is failing.

      Parameters:
      errorCode - The code of the error that's blocking the channel from committing buffered rows to the table. For how to fix each error, see ChannelErrorCode. GetChannel returns this value only when state is failing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      The code of the error that's blocking the channel from committing buffered rows to the table. For how to fix each error, see ChannelErrorCode. GetChannel returns this value only when state is failing.

      Parameters:
      errorCode - The code of the error that's blocking the channel from committing buffered rows to the table. For how to fix each error, see ChannelErrorCode. GetChannel returns this value only when state is failing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorMessage

      GetChannelResponse.Builder errorMessage(String errorMessage)

      A message that describes the error in errorCode. GetChannel returns this value only together with errorCode.

      Parameters:
      errorMessage - A message that describes the error in errorCode. GetChannel returns this value only together with errorCode.
      Returns:
      Returns a reference to this object so that method calls can be chained together.