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,
                                        io.vertx.core.http.HttpClientOptions options)
        Create a new client
        Parameters:
        vertx - the vertx instance
        options - the client options
        Returns:
        the created client
      • request

        public io.vertx.core.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> io.vertx.core.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 io.vertx.core.Future<Void> close()
        Close this client.
        Returns:
      • rxClose

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

        @Deprecated
        public <Req,​Resp> io.vertx.core.Future<GrpcClientRequest<Req,​Resp>> request​(SocketAddress server,
                                                                                                io.grpc.MethodDescriptor<Req,​Resp> service)
        Deprecated.
        Parameters:
        server -
        service -
        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:
      • call

        @Deprecated
        public <Req,​Resp,​T> io.vertx.core.Future<T> call​(SocketAddress server,
                                                                     io.grpc.MethodDescriptor<Req,​Resp> service,
                                                                     io.vertx.core.Handler<GrpcClientRequest<Req,​Resp>> requestHandler,
                                                                     Function<GrpcClientResponse<Req,​Resp>,​io.vertx.core.Future<T>> resultFn)
        Deprecated.
        Parameters:
        server -
        service -
        requestHandler -
        resultFn -
        Returns:
      • rxCall

        @Deprecated
        public <Req,​Resp,​T> rx.Single<T> rxCall​(SocketAddress server,
                                                            io.grpc.MethodDescriptor<Req,​Resp> service,
                                                            io.vertx.core.Handler<GrpcClientRequest<Req,​Resp>> requestHandler,
                                                            Function<GrpcClientResponse<Req,​Resp>,​io.vertx.core.Future<T>> resultFn)
        Deprecated.
        Parameters:
        server -
        service -
        requestHandler -
        resultFn -
        Returns: