Class ServiceInvoker

java.lang.Object
io.vertx.rxjava3.grpc.client.ServiceInvoker
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class ServiceInvoker extends Object implements io.vertx.lang.rx.RxDelegate
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.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<ServiceInvoker> __TYPE_ARG
  • Constructor Details

    • ServiceInvoker

      public ServiceInvoker(ServiceInvoker delegate)
    • ServiceInvoker

      public ServiceInvoker(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public ServiceInvoker getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • invoker

      public <Req,Resp> Single<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
    • rxInvoker

      public <Req,Resp> Single<GrpcClientRequest<Req,Resp>> rxInvoker(ServiceMethod<Resp,Req> method)
      Create a request for the given service method.
      Parameters:
      method - the gRPC service method
      Returns:
      a future request
    • newInstance

      public static ServiceInvoker newInstance(ServiceInvoker arg)