Class ReactiveResponseProperties

java.lang.Object
org.apache.juneau.rest.server.reactive.ReactiveResponseProperties

@ConfigProperties(prefix="ReactiveResponse") public class ReactiveResponseProperties extends Object
The ReactiveResponse.* settings for ReactiveResponseProcessor, resolved as a single bound object.

Values are resolved from the standard Settings source chain (system properties, environment, registered property sources) as well as any PropertySource beans registered in the resource's bean store, so a resource's @Rest(config=...) file can set a ReactiveResponse.* key. Relaxed key matching is enabled.

The bound instance is retrievable from the resource bean store via beanStore().getBean(ReactiveResponseProperties.class); registering your own instance there overrides the settings.

Settings

  • ReactiveResponse.maxBufferedElements — the maximum number of elements collected for a buffered (non-streaming) response. Default 10000. A value less than 1 selects the default.
Since:
10.0.0
  • Field Details

  • Constructor Details

  • Method Details

    • getMaxBufferedElements

      public int getMaxBufferedElements()
      The maximum number of elements a buffered response may collect.

      When a publisher emits more elements than this limit, its subscription is cancelled and the request fails with a 500 response; the response is never silently truncated.

      Returns:
      The limit. Always at least 1.