Class GrpcIoServer

  • All Implemented Interfaces:
    io.vertx.core.Handler<HttpServerRequest>

    public class GrpcIoServer
    extends GrpcServer
    implements io.vertx.core.Handler<HttpServerRequest>

    Extends the so it can be utilized with .

    In Vert.x 5, the core is decoupled from `io.grpc.*` packages to support JPMS.

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

    • Constructor Detail

      • GrpcIoServer

        public GrpcIoServer​(GrpcIoServer delegate)
      • GrpcIoServer

        public GrpcIoServer​(Object delegate)
    • Method Detail

      • handle

        public void handle​(HttpServerRequest event)
        Something has happened, so handle it.
        Specified by:
        handle in interface io.vertx.core.Handler<HttpServerRequest>
        Overrides:
        handle in class GrpcServer
        Parameters:
        event - the event to handle
      • server

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

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

        public <Req,​Resp> GrpcIoServer callHandler​(io.grpc.MethodDescriptor<Req,​Resp> methodDesc,
                                                         io.vertx.core.Handler<GrpcServerRequest<Req,​Resp>> handler)
        Set a service method call handler that handles any call made to the server for the service method.
        Overrides:
        callHandler in class GrpcServer
        Parameters:
        methodDesc -
        handler - the service method call handler
        Returns:
        a reference to this, so the API can be used fluently