Interface ServiceInvoker


@Unstable public interface ServiceInvoker
A contract for issuing gRPC client requests by service method, without requiring a specific transport or server address.

Generated gRPC client stubs use this interface as their underlying transport abstraction, allowing them to work with any implementation - HTTP/2 via GrpcClient, event bus, etc.

  • Method Summary

    Modifier and Type
    Method
    Description
    <Req,Resp> Future<GrpcClientRequest<Req,Resp>>
    invoker(ServiceMethod<Resp,Req> method)
    Create a request for the given service method.
  • Method Details

    • invoker

      <Req,Resp> Future<GrpcClientRequest<Req,Resp>> invoker(ServiceMethod<Resp,Req> method)
      Create a request for the given service method.
      Parameters:
      method - the gRPC service method
      Returns:
      a future request