Interface JsonRpcClient

All Superinterfaces:
io.helidon.builder.api.RuntimeType.Api<JsonRpcClientConfig>

public interface JsonRpcClient extends io.helidon.builder.api.RuntimeType.Api<JsonRpcClientConfig>
A JSON-RPC client.
  • Field Details

    • PROTOCOL_ID

      static final String PROTOCOL_ID
      Protocol ID constant for JSON-RPC.
      See Also:
    • PROTOCOL

      static final io.helidon.webclient.spi.Protocol<JsonRpcClient,JsonRpcClientProtocolConfig> PROTOCOL
      Protocol to use to get an instance of JSON-RPC specific client from WebClient.client(io.helidon.webclient.spi.Protocol).
  • Method Details

    • builder

      static JsonRpcClientConfig.Builder builder()
      A new fluent API builder to customize client setup.
      Returns:
      a new builder
    • create

      static JsonRpcClient create(JsonRpcClientConfig clientConfig)
      Create a new instance with custom configuration.
      Parameters:
      clientConfig - JSON-RPC client configuration
      Returns:
      a new JSON-RPC client
    • create

      Create a new instance customizing its configuration.
      Parameters:
      consumer - JSON-RPC client configuration
      Returns:
      a new JSON-RPC client
    • create

      static JsonRpcClient create()
      Create a new instance with default configuration.
      Returns:
      a new JSON-RPC client
    • rpcMethod

      JsonRpcClientRequest rpcMethod(String method)
      Create a new JsonRpcClientRequest given a JSON-RPC method.
      Parameters:
      method - the method
      Returns:
      a new JSON-RPC request
    • batch

      default JsonRpcClientBatchRequest batch()
      Create a JSON-RPC batch request.
      Returns:
      new batch request
    • batch

      Create a JSON-RPC batch request and set the path related to the base URI.
      Parameters:
      path - the path
      Returns:
      new batch request