Package io.vertx.rxjava.grpcio.server
Class GrpcIoServer
- java.lang.Object
-
- io.vertx.rxjava.grpc.server.GrpcServer
-
- io.vertx.rxjava.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 theoriginal
non 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.boolean
equals(Object o)
GrpcIoServer
getDelegate()
void
handle(HttpServerRequest event)
Something has happened, so handle it.int
hashCode()
static GrpcIoServer
newInstance(GrpcIoServer arg)
static GrpcIoServer
server(Vertx vertx)
Create a blank gRPC/IO serverstatic GrpcIoServer
server(Vertx vertx, GrpcServerOptions options)
Create a blank gRPC/IO serverString
toString()
-
Methods inherited from class io.vertx.rxjava.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:
toString
in classGrpcServer
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classGrpcServer
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGrpcServer
-
getDelegate
public GrpcIoServer getDelegate()
- Specified by:
getDelegate
in interfaceRxDelegate
- Overrides:
getDelegate
in classGrpcServer
-
handle
public void handle(HttpServerRequest event)
Something has happened, so handle it.- Specified by:
handle
in interfaceHandler<HttpServerRequest>
- Overrides:
handle
in 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:
callHandler
in 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)
-
-