Package io.fluxcapacitor.common.api
Class ResultBatch
java.lang.Object
io.fluxcapacitor.common.api.ResultBatch
- All Implemented Interfaces:
JsonType
Represents a batch of results returned from the Flux platform in response to a
RequestBatch
.
Each RequestResult
in this list corresponds to one of the requests in the original batch and is
matched using requestId
. Note that result order is not guaranteed to match the order of the requests.
Result Matching
The Flux client automatically routes eachRequestResult
back to its originating Request
using the unique requestId
.
Error Handling
If any request fails, its result will be anErrorResult
. The client will complete the
corresponding CompletableFuture
exceptionally using a ServiceException
.- See Also:
-
Constructor Details
-
ResultBatch
public ResultBatch()
-