Class ResultBatch

java.lang.Object
io.fluxcapacitor.common.api.ResultBatch
All Implemented Interfaces:
JsonType

public class ResultBatch extends Object implements 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 each RequestResult back to its originating Request using the unique requestId.

Error Handling

If any request fails, its result will be an ErrorResult. The client will complete the corresponding CompletableFuture exceptionally using a ServiceException.
See Also:
  • Constructor Details

    • ResultBatch

      public ResultBatch()