Class GrpcServer

    • Constructor Detail

      • GrpcServer

        public GrpcServer​(GrpcServer delegate)
      • GrpcServer

        public GrpcServer​(Object delegate)
    • Method Detail

      • hashCode

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

        public static GrpcServer server​(Vertx vertx)
        Create a blank gRPC server
        Parameters:
        vertx - the vertx instance
        Returns:
        the created server
      • server

        public static GrpcServer server​(Vertx vertx,
                                        GrpcServerOptions options)
        Create a blank gRPC server
        Parameters:
        vertx - the vertx instance
        options - the server options
        Returns:
        the created server
      • callHandler

        public GrpcServer callHandler​(Handler<GrpcServerRequest<Buffer,​Buffer>> handler)
        Set a call handler that handles any call made to the server.
        Parameters:
        handler - the service method call handler
        Returns:
        a reference to this, so the API can be used fluently
      • callHandler

        public <Req,​Resp> GrpcServer callHandler​(ServiceMethod<Req,​Resp> serviceMethod,
                                                       Handler<GrpcServerRequest<Req,​Resp>> handler)
        Set a service method call handler that handles any call made to the server for the fullMethodName service method.
        Parameters:
        serviceMethod - the service method
        handler - the service method call handler
        Returns:
        a reference to this, so the API can be used fluently
      • callHandler

        @Deprecated
        public <Req,​Resp> GrpcServer callHandler​(io.grpc.MethodDescriptor<Req,​Resp> methodDesc,
                                                       Handler<GrpcServerRequest<Req,​Resp>> handler)
        Deprecated.
        Parameters:
        methodDesc -
        handler -
        Returns: