Package io.fluxcapacitor.common.api
Class RequestBatch<T extends JsonType>
java.lang.Object
io.fluxcapacitor.common.api.RequestBatch<T>
- Type Parameters:
T
- the type of individual request, typically a subtype ofJsonType
(e.g.,Request
)
- All Implemented Interfaces:
JsonType
Represents a batch of requests to be sent to the Flux platform in a single network round-trip.
Used internally by the Flux client to optimize performance by batching multiple Request
instances into a
single payload. This reduces round-trips and improves throughput when many requests are sent in quick succession.
Usage
While most users won't constructRequestBatch
manually, it's useful to know that multiple requests (e.g.
queries or commands) may be transparently wrapped and sent together.- See Also:
-
Constructor Details
-
RequestBatch
public RequestBatch()
-