Class GrpcClient

    • Constructor Detail

      • GrpcClient

        public GrpcClient​(GrpcClient delegate)
      • GrpcClient

        public GrpcClient​(Object delegate)
    • Method Detail

      • hashCode

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

        public static GrpcClient client​(Vertx vertx)
        Create a new client
        Parameters:
        vertx - the vertx instance
        Returns:
        the created client
      • client

        public static GrpcClient client​(Vertx vertx,
                                        GrpcClientOptions options)
        Create a new client
        Parameters:
        vertx - the vertx instance
        options -
        Returns:
        the created client
      • client

        public static GrpcClient client​(Vertx vertx,
                                        HttpClientOptions options)
        Create a new client
        Parameters:
        vertx - the vertx instance
        options - the client options
        Returns:
        the created client
      • request

        public Future<GrpcClientRequest<Buffer,​Buffer>> request​(SocketAddress server)
        Connect to the remote server and create a request for any hosted gRPC service.
        Parameters:
        server - the server hosting the service
        Returns:
        a future request
      • rxRequest

        public rx.Single<GrpcClientRequest<Buffer,​Buffer>> rxRequest​(SocketAddress server)
        Connect to the remote server and create a request for any hosted gRPC service.
        Parameters:
        server - the server hosting the service
        Returns:
        a future request
      • request

        public <Req,​Resp> Future<GrpcClientRequest<Req,​Resp>> request​(SocketAddress server,
                                                                                  ServiceMethod<Resp,​Req> method)
        Connect to the remote server and create a request for any hosted gRPC service.
        Parameters:
        server - the server hosting the service
        method - the grpc method
        Returns:
        a future request
      • rxRequest

        public <Req,​Resp> rx.Single<GrpcClientRequest<Req,​Resp>> rxRequest​(SocketAddress server,
                                                                                       ServiceMethod<Resp,​Req> method)
        Connect to the remote server and create a request for any hosted gRPC service.
        Parameters:
        server - the server hosting the service
        method - the grpc method
        Returns:
        a future request
      • close

        public Future<Void> close()
        Close this client.
        Returns:
      • rxClose

        public rx.Single<Void> rxClose()
        Close this client.
        Returns:
      • rxRequest

        @Deprecated
        public <Req,​Resp> rx.Single<GrpcClientRequest<Req,​Resp>> rxRequest​(SocketAddress server,
                                                                                       io.grpc.MethodDescriptor<Req,​Resp> service)
        Deprecated.
        Parameters:
        server -
        service -
        Returns: