Package io.vertx.reactivex.grpcio.server
Class GrpcIoServer
- java.lang.Object
-
- io.vertx.reactivex.grpc.server.GrpcServer
-
- io.vertx.reactivex.grpcio.server.GrpcIoServer
-
- All Implemented Interfaces:
Handler<HttpServerRequest>,RxDelegate
public class GrpcIoServer extends GrpcServer implements RxDelegate, 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 theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<GrpcIoServer>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GrpcIoServer(GrpcIoServer delegate)GrpcIoServer(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <Req,Resp>
GrpcIoServercallHandler(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 service method.booleanequals(Object o)GrpcIoServergetDelegate()voidhandle(HttpServerRequest event)Something has happened, so handle it.inthashCode()static GrpcIoServernewInstance(GrpcIoServer arg)static GrpcIoServerserver(Vertx vertx)Create a blank gRPC/IO serverstatic GrpcIoServerserver(Vertx vertx, GrpcServerOptions options)Create a blank gRPC/IO serverStringtoString()-
Methods inherited from class io.vertx.reactivex.grpc.server.GrpcServer
callHandler, callHandler, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<GrpcIoServer> __TYPE_ARG
-
-
Constructor Detail
-
GrpcIoServer
public GrpcIoServer(GrpcIoServer delegate)
-
GrpcIoServer
public GrpcIoServer(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classGrpcServer
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classGrpcServer
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGrpcServer
-
getDelegate
public GrpcIoServer getDelegate()
- Specified by:
getDelegatein interfaceRxDelegate- Overrides:
getDelegatein classGrpcServer
-
handle
public void handle(HttpServerRequest event)
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<HttpServerRequest>- Overrides:
handlein classGrpcServer- 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 instanceoptions- the server options- Returns:
- the created server
-
callHandler
public <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 service method.- Overrides:
callHandlerin classGrpcServer- Parameters:
methodDesc-handler- the service method call handler- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static GrpcIoServer newInstance(GrpcIoServer arg)
-
-