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 -
        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​(io.grpc.MethodDescriptor<Req,​Resp> methodDesc,
                                                       Handler<GrpcServerRequest<Req,​Resp>> handler)
        Set a service method call handler that handles any call call made to the server for the service method.
        Parameters:
        methodDesc -
        handler - the service method call handler
        Returns:
        a reference to this, so the API can be used fluently