Package io.vertx.grpcio.server
Interface GrpcIoServiceBridge
-
public interface GrpcIoServiceBridge
Bridge a gRPC service with aGrpcServer
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(GrpcIoServer server)
Bind all service methods to the @{code server}.static GrpcIoServiceBridge
bridge(BindableService service)
Create a stub for a givenservice
.static GrpcIoServiceBridge
bridge(ServerServiceDefinition service)
Create a stub for a givenservice
.void
unbind(GrpcIoServer server)
Unbind all service methods from the @{code server}.
-
-
-
Method Detail
-
bridge
static GrpcIoServiceBridge bridge(ServerServiceDefinition service)
Create a stub for a givenservice
.- Parameters:
service
- the service- Returns:
- the stub
-
bridge
static GrpcIoServiceBridge bridge(BindableService service)
Create a stub for a givenservice
.- Parameters:
service
- the service- Returns:
- the stub
-
bind
void bind(GrpcIoServer server)
Bind all service methods to the @{code server}.- Parameters:
server
- the server to bind to
-
unbind
void unbind(GrpcIoServer server)
Unbind all service methods from the @{code server}.- Parameters:
server
- the server to unbind from
-
-