public interface GrpcIoServer extends GrpcServer
Extends the GrpcServer
so it can be utilized with MethodDescriptor
.
In Vert.x 5, the core GrpcServer
is decoupled from `io.grpc.*` packages to support JPMS.
Modifier and Type | Method and Description |
---|---|
<Req,Resp> GrpcIoServer |
callHandler(io.grpc.MethodDescriptor<Req,Resp> methodDesc,
Handler<GrpcServerRequest<Req,Resp>> handler)
Set a service method call handler that handles any call made to the server for the
MethodDescriptor service method. |
static GrpcIoServer |
server(Vertx vertx)
Create a blank gRPC/IO server
|
static GrpcIoServer |
server(Vertx vertx,
GrpcServerOptions options)
Create a blank gRPC/IO server
|
callHandler, callHandler
static GrpcIoServer server(Vertx vertx)
server
in interface GrpcServer
vertx
- the vertx instancestatic GrpcIoServer server(Vertx vertx, GrpcServerOptions options)
server
in interface GrpcServer
vertx
- the vertx instanceoptions
- the server options<Req,Resp> GrpcIoServer callHandler(io.grpc.MethodDescriptor<Req,Resp> methodDesc, Handler<GrpcServerRequest<Req,Resp>> handler)
MethodDescriptor
service method.callHandler
in interface GrpcServer
handler
- the service method call handlerCopyright © 2024 Eclipse. All rights reserved.