Interface GrpcServiceConfigurer
- All Known Implementing Classes:
DefaultGrpcServiceConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Configures and binds a
service spec into a
service definition that can then be added to a gRPC
server.- Author:
- Chris Bono
-
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ServerServiceDefinitionconfigure(GrpcServiceSpec serviceSpec, @Nullable GrpcServerFactory serverFactory) Configure and bind a gRPC server spec resulting in a service definition that can then be added to a gRPC server.
-
Method Details
-
configure
io.grpc.ServerServiceDefinition configure(GrpcServiceSpec serviceSpec, @Nullable GrpcServerFactory serverFactory) Configure and bind a gRPC server spec resulting in a service definition that can then be added to a gRPC server.- Parameters:
serviceSpec- the spec containing the info about the serviceserverFactory- the factory that can be used to create a gRPC server, ornullif the service is not bound to a specific server factory.- Returns:
- bound and configured service definition that is ready to be added to a server
-