Module io.helidon.webclient.jsonrpc
Package io.helidon.webclient.jsonrpc
Interface JsonRpcClientBatchRequest
public interface JsonRpcClientBatchRequest
An interface representing a JSON-RPC batch request.
-
Method Summary
Modifier and TypeMethodDescriptionGet the complete batch request as a JSON array.Start creation of a newJsonRpcClientRequest
given a JSON-RPC method.submit()
Submit this request batch and get a response batch.
-
Method Details
-
rpcMethod
Start creation of a newJsonRpcClientRequest
given a JSON-RPC method. To add a request to the batch, callJsonRpcClientRequest.addToBatch()
.- Parameters:
method
- the method- Returns:
- a new JSON-RPC request
-
submit
JsonRpcClientBatchResponse submit()Submit this request batch and get a response batch.- Returns:
- a response batch
-
asJsonArray
JsonArray asJsonArray()Get the complete batch request as a JSON array.- Returns:
- a JSON array
-