Package io.vertx.grpcio.server
Interface GrpcIoServiceBridge
-
public interface GrpcIoServiceBridgeBridge a gRPC service with aGrpcServer.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(GrpcIoServer server)Bind all service methods to the @{code server}.static GrpcIoServiceBridgebridge(BindableService service)Create a stub for a givenservice.static GrpcIoServiceBridgebridge(ServerServiceDefinition service)Create a stub for a givenservice.voidunbind(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
-
-