Interface ResponseStreamingConfiguration.Builder

  • Method Details

    • maxEventsPerInvocation

      ResponseStreamingConfiguration.Builder maxEventsPerInvocation(Integer maxEventsPerInvocation)

      Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.

      Parameters:
      maxEventsPerInvocation - Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
      Returns:
      Returns a reference to this object so that method calls can be chained together.