Interface GrpcIoServiceBridge
- All Superinterfaces:
Service, ServiceInvoker
Bridge a gRPC service with a
ServiceContainer.-
Field Summary
Fields inherited from interface ServiceInvoker
DEFAULT_INSTANCE -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(ServiceContainer 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(ServiceContainer server) Unbind all service methods from the @{code server}.Methods inherited from interface Service
close, descriptor, hasMethod, methodDescriptor, methodDescriptors, methods, name, pathOfMethodMethods inherited from interface ServiceInvoker
invoker
-
Method Details
-
bridge
Create a stub for a givenservice.- Parameters:
service- the service- Returns:
- the stub
-
bridge
Create a stub for a givenservice.- Parameters:
service- the service- Returns:
- the stub
-
bind
Bind all service methods to the @{code server}.- Parameters:
server- the server to bind to
-
unbind
Unbind all service methods from the @{code server}.- Parameters:
server- the server to unbind from
-