Class ReactiveResponseProperties
java.lang.Object
org.apache.juneau.rest.server.reactive.ReactiveResponseProperties
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. Default10000. A value less than1selects the default.
- Since:
- 10.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe maximum number of elements a buffered response may collect.
-
Field Details
-
DEFAULT_MAX_BUFFERED_ELEMENTS
The default value ofgetMaxBufferedElements().- See Also:
-
-
Constructor Details
-
ReactiveResponseProperties
public ReactiveResponseProperties()
-
-
Method Details
-
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
500response; the response is never silently truncated.- Returns:
- The limit. Always at least
1.
-