Package org.jboss.resteasy.reactive
Class RestMulti.SyncRestMulti.Builder<T>
java.lang.Object
org.jboss.resteasy.reactive.RestMulti.SyncRestMulti.Builder<T>
- Enclosing class:
RestMulti.SyncRestMulti<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()encodeAsJsonArray(boolean encodeAsJsonArray) Configure whether objects produced by the wrappedMultiare encoded as JSON array elements, which is the default.status(int status) withDemand(long demand) Configure thedemandsignaled to the wrappedMulti, defaults to1.
-
Method Details
-
withDemand
Configure thedemandsignaled to the wrappedMulti, defaults to1.A demand of
1guarantees serial/sequential processing, any higher demand supports concurrent processing. A demand greater1, with concurrentMultiprocessing, does not guarantee element order - this means that elements emitted by theRestMulti.fromMultiData(Multi)sourceMulti} will be produced in a non-deterministic order.- See Also:
-
encodeAsJsonArray
Configure whether objects produced by the wrappedMultiare encoded as JSON array elements, which is the default.encodeAsJsonArray(false)produces separate JSON objects.This property is only used for JSON object results and ignored for SSE and chunked streaming.
-
status
-
header
-
build
-